@classmethod
    def _strategy_lookup(cls, *key):
        for prop_cls in cls.__mro__:
            if prop_cls in cls._all_strategies:
                strategies = cls._all_strategies[prop_cls]
                try:
                    return strategies[key]
                except KeyError:
                    pass
        raise Exception("can't locate strategy for %s %s" % (cls, key))
dataset/ETHPy150Open zzzeek/sqlalchemy/lib/sqlalchemy/orm/interfaces.py/StrategizedProperty._strategy_lookup/original