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

Method visit_op_expr

mypy/treetransform.py:529–537  ·  view source on GitHub ↗
(self, node: OpExpr)

Source from the content-addressed store, hash-verified

527 )
528
529 def visit_op_expr(self, node: OpExpr) -> OpExpr:
530 new = OpExpr(
531 node.op,
532 self.expr(node.left),
533 self.expr(node.right),
534 cast(TypeAliasExpr | None, self.optional_expr(node.analyzed)),
535 )
536 new.method_type = self.optional_type(node.method_type)
537 return new
538
539 def visit_comparison_expr(self, node: ComparisonExpr) -> ComparisonExpr:
540 new = ComparisonExpr(node.operators, self.expressions(node.operands))

Callers

nothing calls this directly

Calls 4

exprMethod · 0.95
optional_exprMethod · 0.95
optional_typeMethod · 0.95
OpExprClass · 0.90

Tested by

no test coverage detected