MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _add_missing

Method _add_missing

lib/sqlalchemy/sql/_util_cy.py:100–105  ·  view source on GitHub ↗
(self: anon_map, key: _AM_KEY, /)

Source from the content-addressed store, hash-verified

98 @cython.cfunc
99 @cython.inline
100 def _add_missing(self: anon_map, key: _AM_KEY, /) -> int:
101 val: int = self._index
102 self._index += 1
103 self_dict: dict = self # type: ignore[type-arg]
104 self_dict[key] = val
105 return val
106
107 def get_anon(self: anon_map, obj: object, /) -> Tuple[int, bool]:
108 self_dict: dict = self # type: ignore[type-arg]

Callers 3

get_anonMethod · 0.95
__getitem__Method · 0.95
__missing__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected