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

Method visit_operator_assignment_stmt

mypy/server/deps.py:587–594  ·  view source on GitHub ↗
(self, o: OperatorAssignmentStmt)

Source from the content-addressed store, hash-verified

585 return lvalue_type
586
587 def visit_operator_assignment_stmt(self, o: OperatorAssignmentStmt) -> None:
588 super().visit_operator_assignment_stmt(o)
589 self.process_lvalue(o.lvalue)
590 method = op_methods[o.op]
591 self.add_attribute_dependency_for_expr(o.lvalue, method)
592 if o.op in ops_with_inplace_method:
593 inplace_method = "__i" + method[2:]
594 self.add_attribute_dependency_for_expr(o.lvalue, inplace_method)
595
596 def visit_for_stmt(self, o: ForStmt) -> None:
597 super().visit_for_stmt(o)

Callers

nothing calls this directly

Calls 2

process_lvalueMethod · 0.95

Tested by

no test coverage detected