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

Method pretty_name

mypyc/codegen/emit.py:647–651  ·  view source on GitHub ↗
(self, typ: RType)

Source from the content-addressed store, hash-verified

645 # Otherwise assume it's an unboxed, pointerless value and do nothing.
646
647 def pretty_name(self, typ: RType) -> str:
648 value_type = optional_value_type(typ)
649 if value_type is not None:
650 return "%s or None" % self.pretty_name(value_type)
651 return str(typ)
652
653 def emit_cast(
654 self,

Callers 3

emit_unboxMethod · 0.95

Calls 2

optional_value_typeFunction · 0.90
strClass · 0.85

Tested by

no test coverage detected