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

Method _remove_item

lib/sqlalchemy/orm/clsregistry.py:289–294  ·  view source on GitHub ↗
(self, name: str)

Source from the content-addressed store, hash-verified

287 return self.contents[name]
288
289 def _remove_item(self, name: str) -> None:
290 self.contents.pop(name, None)
291 if not self.contents:
292 if self.parent is not None:
293 self.parent._remove_item(self.name)
294 _registries.discard(self)
295
296 def resolve_attr(self, key: str) -> Union[_ModNS, Type[Any]]:
297 return self.mod_ns.__getattr__(key)

Callers 1

add_classMethod · 0.95

Calls 2

popMethod · 0.45
discardMethod · 0.45

Tested by

no test coverage detected