MCPcopy Index your code
hub / github.com/python/mypy / visit

Function visit

mypy/memprofile.py:102–105  ·  view source on GitHub ↗
(o: object)

Source from the content-addressed store, hash-verified

100 seen = {id(o) for o in objs}
101
102 def visit(o: object) -> None:
103 if id(o) not in seen:
104 objs.append(o)
105 seen.add(id(o))
106
107 for obj in objs.copy():
108 if type(obj) is FakeInfo:

Callers 1

find_recursive_objectsFunction · 0.70

Calls 3

idFunction · 0.85
appendMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…