class documentation

class InspectionAttrInfo(InspectionAttr):

Known subclasses: sqlalchemy.ext.associationproxy.AssociationProxy, sqlalchemy.ext.hybrid.hybrid_method, sqlalchemy.ext.hybrid.hybrid_property, sqlalchemy.orm.state.InstanceState

View In Hierarchy

Adds the .info attribute to .InspectionAttr.

The rationale for .InspectionAttr vs. .InspectionAttrInfo is that the former is compatible as a mixin for classes that specify __slots__; this is essentially an implementation artifact.

Property info Info dictionary associated with the object, allowing user-defined data to be associated with this .InspectionAttr.

Inherited from InspectionAttr:

Class Variable __slots__ Undocumented
Class Variable ​_is​_internal​_proxy True if this object is an internal proxy object.
Class Variable is​_aliased​_class True if this object is an instance of .AliasedClass.
Class Variable is​_attribute True if this object is a Python :term:`descriptor`.
Class Variable is​_bundle True if this object is an instance of .Bundle.
Class Variable is​_clause​_element True if this object is an instance of _expression.ClauseElement.
Class Variable is​_instance True if this object is an instance of .InstanceState.
Class Variable is​_mapper True if this object is an instance of _orm.Mapper.
Class Variable is​_property True if this object is an instance of .MapperProperty.
Class Variable is​_selectable Return True if this object is an instance of _expression.Selectable.

Info dictionary associated with the object, allowing user-defined data to be associated with this .InspectionAttr.

The dictionary is generated when first accessed. Alternatively, it can be specified as a constructor argument to the .column_property, _orm.relationship, or .composite functions.

Changed in version 1.0.0: .MapperProperty.info is also available on extension types via the .InspectionAttrInfo.info attribute, so that it can apply to a wider variety of ORM and extension constructs.

See Also

.QueryableAttribute.info

.SchemaItem.info