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

Method visit_any

mypy/copytype.py:49–50  ·  view source on GitHub ↗
(self, t: AnyType)

Source from the content-addressed store, hash-verified

47 return t
48
49 def visit_any(self, t: AnyType) -> ProperType:
50 return self.copy_common(t, AnyType(t.type_of_any, t.source_any, t.missing_import_name))
51
52 def visit_none_type(self, t: NoneType) -> ProperType:
53 return self.copy_common(t, NoneType())

Callers

nothing calls this directly

Calls 2

copy_commonMethod · 0.95
AnyTypeClass · 0.90

Tested by

no test coverage detected