MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / get_anon

Method get_anon

lib/sqlalchemy/sql/_util_cy.py:107–114  ·  view source on GitHub ↗
(self: anon_map, obj: object, /)

Source from the content-addressed store, hash-verified

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]
109
110 idself: int = _get_id(obj)
111 if idself in self_dict:
112 return self_dict[idself], True
113 else:
114 return self._add_missing(idself), False
115
116 if cython.compiled:
117

Callers 5

_gen_cache_keyMethod · 0.80
_gen_cache_keyMethod · 0.80
init_objectsMethod · 0.80
test_get_anon_npMethod · 0.80
test_get_anon_pMethod · 0.80

Calls 2

_add_missingMethod · 0.95
_get_idFunction · 0.90

Tested by 2

test_get_anon_npMethod · 0.64
test_get_anon_pMethod · 0.64