MCPcopy Create free account
hub / github.com/python/mypy / get_original_any

Function get_original_any

mypy/stats.py:489–494  ·  view source on GitHub ↗
(t: AnyType)

Source from the content-addressed store, hash-verified

487
488
489def get_original_any(t: AnyType) -> AnyType:
490 if t.type_of_any == TypeOfAny.from_another_any:
491 assert t.source_any
492 assert t.source_any.type_of_any != TypeOfAny.from_another_any
493 t = t.source_any
494 return t

Callers 2

typeMethod · 0.85
is_special_form_anyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…