(
class_: Type[_O], configure: bool = False
)
| 518 | |
| 519 | |
| 520 | def _inspect_mapped_class( |
| 521 | class_: Type[_O], configure: bool = False |
| 522 | ) -> Optional[Mapper[_O]]: |
| 523 | try: |
| 524 | class_manager = opt_manager_of_class(class_) |
| 525 | if class_manager is None or not class_manager.is_mapped: |
| 526 | return None |
| 527 | mapper = class_manager.mapper |
| 528 | except exc.NO_STATE: |
| 529 | return None |
| 530 | else: |
| 531 | if configure: |
| 532 | mapper._check_configure() |
| 533 | return mapper |
| 534 | |
| 535 | |
| 536 | def _parse_mapper_argument(arg: Union[Mapper[_O], Type[_O]]) -> Mapper[_O]: |
no test coverage detected