def __getattribute__(self, name):
        """Proxy entity attributes."""
        cls = object.__getattribute__(self, '__class__')
        names = {field.name for field in attr.fields(cls)}
        names |= set(dir(cls))
        if name in names:
            return object.__getattribute__(self, name)
        entity = object.__getattribute__(self, 'entity')
        return getattr(entity, name)
def __getattribute__ ( self , name ) : cls = object . __getattribute__ ( self , '__class__' ) names = { field . name for field in attr . fields ( cls ) } names |= set ( dir ( cls ) ) if name in names : return object . __getattribute__ ( self , name ) entity = object . __getattribute__ ( self , 'entity' ) return getattr ( entity , name )
Proxy entity attributes.