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

Method visit_assignment_stmt

mypy/test/visitors.py:23–28  ·  view source on GitHub ↗
(self, s: AssignmentStmt)

Source from the content-addressed store, hash-verified

21 self.ignore_file = False
22
23 def visit_assignment_stmt(self, s: AssignmentStmt) -> None:
24 if s.type or ignore_node(s.rvalue):
25 for lvalue in s.lvalues:
26 if isinstance(lvalue, NameExpr):
27 self.nodes.add(lvalue)
28 super().visit_assignment_stmt(s)
29
30 def visit_name_expr(self, n: NameExpr) -> None:
31 if self.ignore_file:

Callers

nothing calls this directly

Calls 3

ignore_nodeFunction · 0.85
isinstanceFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected