MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _new_mapper_instance

Method _new_mapper_instance

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

Source from the content-addressed store, hash-verified

795
796 @classmethod
797 def _new_mapper_instance(
798 cls,
799 class_: Union[DeclarativeAttributeIntercept, DeclarativeMeta, type],
800 mapper: Mapper[_O],
801 ) -> None:
802 _MapperEventsHold.populate(class_, mapper)
803
804 @classmethod
805 @util.preload_module("sqlalchemy.orm")

Calls 1

populateMethod · 0.45

Tested by

no test coverage detected