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

Method expr

mypy/treetransform.py:726–730  ·  view source on GitHub ↗
(self, expr: Expression)

Source from the content-addressed store, hash-verified

724 return new
725
726 def expr(self, expr: Expression) -> Expression:
727 new = expr.accept(self)
728 assert isinstance(new, Expression)
729 new.set_line(expr)
730 return new
731
732 def stmt(self, stmt: Statement) -> Statement:
733 new = stmt.accept(self)

Callers 15

visit_class_defMethod · 0.95
visit_expression_stmtMethod · 0.95
duplicate_assignmentMethod · 0.95
visit_while_stmtMethod · 0.95
visit_for_stmtMethod · 0.95
visit_assert_stmtMethod · 0.95
visit_del_stmtMethod · 0.95
visit_value_patternMethod · 0.95
visit_mapping_patternMethod · 0.95
visit_match_stmtMethod · 0.95
visit_member_exprMethod · 0.95

Calls 3

isinstanceFunction · 0.85
acceptMethod · 0.45
set_lineMethod · 0.45

Tested by

no test coverage detected