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

Method _initialize_instance

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

Source from the content-addressed store, hash-verified

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