MCPcopy
hub / github.com/python/mypy / get_id

Method get_id

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

Source from the content-addressed store, hash-verified

44 return t.accept(mypy.types.TypeStrVisitor(id_mapper=self.id_mapper, options=self.options))
45
46 def get_id(self, o: object) -> int | None:
47 if self.id_mapper:
48 return self.id_mapper.id(o)
49 return None
50
51 def format_id(self, o: object) -> str:
52 if self.id_mapper:

Callers 2

format_idMethod · 0.95
dumpMethod · 0.95

Calls 1

idMethod · 0.45

Tested by

no test coverage detected