MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / map

Method map

lib/sqlalchemy/orm/decl_base.py:386–392  ·  view source on GitHub ↗
(self, mapper_kw: _MapperKwArgs = util.EMPTY_DICT)

Source from the content-addressed store, hash-verified

384 self._early_mapping(mapper_kw)
385
386 def map(self, mapper_kw: _MapperKwArgs = util.EMPTY_DICT) -> Mapper[Any]:
387 mapper_cls = Mapper
388
389 return self.set_cls_attribute(
390 "__mapper__",
391 mapper_cls(self.cls, self.local_table, **mapper_kw),
392 )
393
394 def _setup_inheritance(self, mapper_kw: _MapperKwArgs) -> None:
395 cls = self.cls

Callers

nothing calls this directly

Calls 1

set_cls_attributeMethod · 0.80

Tested by

no test coverage detected