

def model_from_alias(self, model_or_alias):
    if isinstance(model_or_alias, ModelAlias):
        return model_or_alias.model_class
    elif isinstance(self, SelectQuery):
        return model_or_alias.model_class
    return model_or_alias

dataset/ETHPy150Open coleifer/peewee/peewee.py Join.model_from_alias/VarMisuse@31/46 `model_or_alias`->`self`