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

Method visit_instance

mypy/copytype.py:66–68  ·  view source on GitHub ↗
(self, t: Instance)

Source from the content-addressed store, hash-verified

64 return self.copy_common(t, DeletedType(t.source))
65
66 def visit_instance(self, t: Instance) -> ProperType:
67 dup = Instance(t.type, t.args, last_known_value=t.last_known_value)
68 return self.copy_common(t, dup)
69
70 def visit_type_var(self, t: TypeVarType) -> ProperType:
71 return self.copy_common(t, t.copy_modified())

Callers

nothing calls this directly

Calls 2

copy_commonMethod · 0.95
InstanceClass · 0.90

Tested by

no test coverage detected