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

Method format_id

mypy/strconv.py:51–55  ·  view source on GitHub ↗
(self, o: object)

Source from the content-addressed store, hash-verified

49 return None
50
51 def format_id(self, o: object) -> str:
52 if self.id_mapper:
53 return f"<{self.get_id(o)}>"
54 else:
55 return ""
56
57 def dump(self, nodes: Sequence[object], obj: mypy.nodes.Context) -> str:
58 """Convert a list of items to a multiline pretty-printed string.

Callers 2

pretty_nameMethod · 0.95
dumpMethod · 0.80

Calls 1

get_idMethod · 0.95

Tested by

no test coverage detected