MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / unregister

Method unregister

lib/sqlalchemy/orm/instrumentation.py:414–430  ·  view source on GitHub ↗

remove all instrumentation established by this ClassManager.

(self)

Source from the content-addressed store, hash-verified

412 manager.uninstrument_attribute(key, True)
413
414 def unregister(self) -> None:
415 """remove all instrumentation established by this ClassManager."""
416
417 for key in list(self.originals):
418 self.uninstall_member(key)
419
420 self.mapper = None
421 self.dispatch = None # type: ignore
422 self.new_init = None
423 self.info.clear()
424
425 for key in list(self):
426 if key in self.local_attrs:
427 self.uninstrument_attribute(key)
428
429 if self.MANAGER_ATTR in self.class_.__dict__:
430 delattr(self.class_, self.MANAGER_ATTR)
431
432 def install_descriptor(
433 self, key: str, inst: QueryableAttribute[Any]

Callers 3

unregisterMethod · 0.45
unregister_classFunction · 0.45

Calls 3

uninstall_memberMethod · 0.95
clearMethod · 0.45

Tested by

no test coverage detected