MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __missing__

Method __missing__

lib/sqlalchemy/util/_collections.py:331–333  ·  view source on GitHub ↗
(self, key: Any)

Source from the content-addressed store, hash-verified

329 self.weakself = weakref.ref(weakself)
330
331 def __missing__(self, key: Any) -> Any:
332 self[key] = val = self.creator(self.weakself(), key)
333 return val
334
335
336# Define collections that are capable of storing

Callers

nothing calls this directly

Calls 1

creatorMethod · 0.45

Tested by

no test coverage detected