

def keys(self):
    for attr in ('id', 'legal', 'credit', 'credit_url', 'country'):
        if (getattr(self, attr, None) is not None):
            (yield self)

dataset/ETHPy150Open spaceboats/busbus/busbus/provider/__init__.py ProviderBase.keys/VarMisuse@46/61 `attr`->`self`