(
cls: Type[Any],
)
| 120 | |
| 121 | |
| 122 | def _declared_mapping_info( |
| 123 | cls: Type[Any], |
| 124 | ) -> Optional[Union[_DeferredDeclarativeConfig, Mapper[Any]]]: |
| 125 | # deferred mapping |
| 126 | if _DeferredDeclarativeConfig.has_cls(cls): |
| 127 | return _DeferredDeclarativeConfig.config_for_cls(cls) |
| 128 | # regular mapping |
| 129 | elif _is_mapped_class(cls): |
| 130 | return class_mapper(cls, configure=False) |
| 131 | else: |
| 132 | return None |
| 133 | |
| 134 | |
| 135 | def _is_supercls_for_inherits(cls: Type[Any]) -> bool: |
no test coverage detected