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