(
self, state: InstanceState[Any], allow_subtypes: bool
)
| 3376 | ) |
| 3377 | |
| 3378 | def _canload( |
| 3379 | self, state: InstanceState[Any], allow_subtypes: bool |
| 3380 | ) -> bool: |
| 3381 | s = self.primary_mapper() |
| 3382 | if self.polymorphic_on is not None or allow_subtypes: |
| 3383 | return _state_mapper(state).isa(s) |
| 3384 | else: |
| 3385 | return _state_mapper(state) is s |
| 3386 | |
| 3387 | def isa(self, other: Mapper[Any]) -> bool: |
| 3388 | """Return True if the this mapper inherits from the given mapper.""" |
no test coverage detected