(
self,
registry: _RegistryType,
cls_: Type[_O],
table: Optional[FromClause],
mapper_kw: _MapperKwArgs,
)
| 364 | __slots__ = ("local_table", "inherits") |
| 365 | |
| 366 | def __init__( |
| 367 | self, |
| 368 | registry: _RegistryType, |
| 369 | cls_: Type[_O], |
| 370 | table: Optional[FromClause], |
| 371 | mapper_kw: _MapperKwArgs, |
| 372 | ): |
| 373 | super().__init__(registry, cls_) |
| 374 | |
| 375 | self.local_table = self.set_cls_attribute("__table__", table) |
| 376 | |
| 377 | with mapperlib._CONFIGURE_MUTEX: |
| 378 | clsregistry._add_class( |
| 379 | self.classname, self.cls, registry._class_registry |
| 380 | ) |
| 381 | |
| 382 | self._setup_inheritance(mapper_kw) |
| 383 | |
| 384 | self._early_mapping(mapper_kw) |
| 385 | |
| 386 | def map(self, mapper_kw: _MapperKwArgs = util.EMPTY_DICT) -> Mapper[Any]: |
| 387 | mapper_cls = Mapper |
nothing calls this directly
no test coverage detected