MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / _RelationshipDeclared

Class _RelationshipDeclared

lib/sqlalchemy/orm/relationships.py:3503–3515  ·  view source on GitHub ↗

Relationship subclass used implicitly for declarative mapping.

Source from the content-addressed store, hash-verified

3501
3502
3503class _RelationshipDeclared( # type: ignore[misc]
3504 Relationship[_T],
3505 WriteOnlyMapped[_T], # not compatible with Mapped[_T]
3506 DynamicMapped[_T], # not compatible with Mapped[_T]
3507):
3508 """Relationship subclass used implicitly for declarative mapping."""
3509
3510 inherit_cache = True
3511 """:meta private:"""
3512
3513 @classmethod
3514 def _mapper_property_name(cls) -> str:
3515 return "Relationship"

Callers 1

relationshipFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected