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