class documentation

class DescriptorReference(Generic[_DESC]): (source)

View In Hierarchy

a descriptor that refers to a descriptor. used for cases where we need to have an instance variable referring to an object that is itself a descriptor, which typically confuses typing tools as they don't know when they should use ``__get__`` or not when referring to the descriptor assignment as an instance variable. See sqlalchemy.orm.interfaces.PropComparator.prop

Method __delete__ Undocumented
Method __get__ Undocumented
Method __set__ Undocumented
def __delete__(self, instance: Any): (source)

Undocumented

def __get__(self, instance: object, owner: Any) -> _DESC: (source)

Undocumented

def __set__(self, instance: Any, value: _DESC): (source)

Undocumented