(
self, state: InstanceState[Any], allow_subtypes: bool
)
| 3334 | ) |
| 3335 | |
| 3336 | def _canload( |
| 3337 | self, state: InstanceState[Any], allow_subtypes: bool |
| 3338 | ) -> bool: |
| 3339 | s = self.primary_mapper() |
| 3340 | if self.polymorphic_on is not None or allow_subtypes: |
| 3341 | return _state_mapper(state).isa(s) |
| 3342 | else: |
| 3343 | return _state_mapper(state) is s |
| 3344 | |
| 3345 | def isa(self, other: Mapper[Any]) -> bool: |
| 3346 | """Return True if the this mapper inherits from the given mapper.""" |
no test coverage detected