

@hybrid_property
def value(self):
    (fieldname, discriminator) = self.type_map[self.type]
    if (fieldname is None):
        return None
    else:
        return getattr(self, fieldname)

dataset/ETHPy150Open zzzeek/sqlalchemy/examples/vertical/dictlike-polymorphic.py PolymorphicVerticalProperty.value/original