MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _remove_item

Method _remove_item

lib/sqlalchemy/orm/clsregistry.py:233–238  ·  view source on GitHub ↗
(self, ref: weakref.ref[Type[Any]])

Source from the content-addressed store, hash-verified

231 return cls
232
233 def _remove_item(self, ref: weakref.ref[Type[Any]]) -> None:
234 self.contents.discard(ref)
235 if not self.contents:
236 _registries.discard(self)
237 if self.on_remove:
238 self.on_remove()
239
240 def add_item(self, item: Type[Any]) -> None:
241 # protect against class registration race condition against

Callers 1

remove_itemMethod · 0.95

Calls 1

discardMethod · 0.45

Tested by

no test coverage detected