(
key: str,
mapped_class: Type[_O],
parententity: _InternalEntityType[_O],
entity: _ExternalEntityType[Any],
)
| 499 | |
| 500 | |
| 501 | def _queryable_attribute_unreduce( |
| 502 | key: str, |
| 503 | mapped_class: Type[_O], |
| 504 | parententity: _InternalEntityType[_O], |
| 505 | entity: _ExternalEntityType[Any], |
| 506 | ) -> Any: |
| 507 | # this method is only used in terms of the |
| 508 | # sqlalchemy.ext.serializer extension |
| 509 | if insp_is_aliased_class(parententity): |
| 510 | return entity._get_from_serialized(key, mapped_class, parententity) |
| 511 | else: |
| 512 | return getattr(entity, key) |
| 513 | |
| 514 | |
| 515 | class InstrumentedAttribute(QueryableAttribute[_T_co]): |
nothing calls this directly
no test coverage detected