MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / _new_mapper_instance

Method _new_mapper_instance

lib/sqlalchemy/orm/events.py:817–822  ·  view source on GitHub ↗
(
        cls,
        class_: Union[DeclarativeAttributeIntercept, DeclarativeMeta, type],
        mapper: Mapper[_O],
    )

Source from the content-addressed store, hash-verified

815
816 @classmethod
817 def _new_mapper_instance(
818 cls,
819 class_: Union[DeclarativeAttributeIntercept, DeclarativeMeta, type],
820 mapper: Mapper[_O],
821 ) -> None:
822 _MapperEventsHold.populate(class_, mapper)
823
824 @classmethod
825 @util.preload_module("sqlalchemy.orm")

Callers 1

__init__Method · 0.80

Calls 1

populateMethod · 0.45

Tested by

no test coverage detected