class InspectionAttrInfo(InspectionAttr):
Known subclasses: sqlalchemy.ext.associationproxy.AssociationProxy
, sqlalchemy.ext.hybrid.hybrid_method
, sqlalchemy.ext.hybrid.hybrid_property
, sqlalchemy.orm.state.InstanceState
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 . |
sqlalchemy.ext.associationproxy.AssociationProxy
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.
.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