MCPcopy
hub / github.com/python/mypy / visit_var

Method visit_var

mypy/fixup.py:215–219  ·  view source on GitHub ↗
(self, v: Var)

Source from the content-addressed store, hash-verified

213 tv.default.accept(self.type_fixer)
214
215 def visit_var(self, v: Var) -> None:
216 if v.type is not None:
217 v.type.accept(self.type_fixer)
218 if v.setter_type is not None:
219 v.setter_type.accept(self.type_fixer)
220
221 def visit_type_alias(self, a: TypeAlias) -> None:
222 a.target.accept(self.type_fixer)

Callers 2

visit_funcMethod · 0.45
acceptMethod · 0.45

Calls 1

acceptMethod · 0.45

Tested by

no test coverage detected