(arg: Union[Mapper[_O], Type[_O]])
| 530 | |
| 531 | |
| 532 | def _parse_mapper_argument(arg: Union[Mapper[_O], Type[_O]]) -> Mapper[_O]: |
| 533 | insp = inspection.inspect(arg, raiseerr=False) |
| 534 | if insp_is_mapper(insp): |
| 535 | return insp |
| 536 | |
| 537 | raise sa_exc.ArgumentError(f"Mapper or mapped class expected, got {arg!r}") |
| 538 | |
| 539 | |
| 540 | def class_mapper(class_: Type[_O], configure: bool = True) -> Mapper[_O]: |
no test coverage detected