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

Method visit_namedtuple_expr

mypy/strconv.py:582–583  ·  view source on GitHub ↗
(self, o: mypy.nodes.NamedTupleExpr)

Source from the content-addressed store, hash-verified

580 return f"TypeAliasExpr({self.stringify_type(o.node.target)})"
581
582 def visit_namedtuple_expr(self, o: mypy.nodes.NamedTupleExpr) -> str:
583 return f"NamedTupleExpr:{o.line}({o.info.name}, {self.stringify_type(o.info.tuple_type) if o.info.tuple_type is not None else None})"
584
585 def visit_enum_call_expr(self, o: mypy.nodes.EnumCallExpr) -> str:
586 return f"EnumCallExpr:{o.line}({o.info.name}, {o.items})"

Callers 1

acceptMethod · 0.45

Calls 1

stringify_typeMethod · 0.95

Tested by

no test coverage detected