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

Method visit__promote_expr

mypy/strconv.py:591–592  ·  view source on GitHub ↗
(self, o: mypy.nodes.PromoteExpr)

Source from the content-addressed store, hash-verified

589 return f"TypedDictExpr:{o.line}({o.info.name})"
590
591 def visit__promote_expr(self, o: mypy.nodes.PromoteExpr) -> str:
592 return f"PromoteExpr:{o.line}({self.stringify_type(o.type)})"
593
594 def visit_newtype_expr(self, o: mypy.nodes.NewTypeExpr) -> str:
595 return f"NewTypeExpr:{o.line}({o.name}, {self.dump([o.old_type], o)})"

Callers 1

acceptMethod · 0.45

Calls 1

stringify_typeMethod · 0.95

Tested by

no test coverage detected