MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _initialize_instance

Method _initialize_instance

lib/sqlalchemy/orm/state.py:588–598  ·  view source on GitHub ↗
(*mixed: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

586 return {}
587
588 def _initialize_instance(*mixed: Any, **kwargs: Any) -> None:
589 self, instance, args = mixed[0], mixed[1], mixed[2:] # noqa
590 manager = self.manager
591
592 manager.dispatch.init(self, args, kwargs)
593
594 try:
595 manager.original_init(*mixed[1:], **kwargs)
596 except:
597 with util.safe_reraise():
598 manager.dispatch.init_failure(self, args, kwargs)
599
600 def get_history(self, key: str, passive: PassiveFlag) -> History:
601 return self.manager[key].impl.get_history(self, self.dict, passive)

Callers

nothing calls this directly

Calls 2

init_failureMethod · 0.80
initMethod · 0.45

Tested by

no test coverage detected