class NodeTypeA(BaseNode):
    __mapper_args__ = {'polymorphic_identity': 'NodeTypeA'}
typeB_children = relationship('NodeTypeB', backref='parent_node',
    remote_side='NodeTypeB.parent_id')
SQLAlchemy One-to-Many relationship on single table inheritance - declarative