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

Function format_union

mypy/messages.py:2682–2683  ·  view source on GitHub ↗
(types: Sequence[Type])

Source from the content-addressed store, hash-verified

2680 return formatted
2681
2682 def format_union(types: Sequence[Type]) -> str:
2683 return " | ".join(format_union_items(types))
2684
2685 def format_literal_value(typ: LiteralType) -> str:
2686 if typ.is_enum_literal():

Callers 1

format_type_innerFunction · 0.85

Calls 2

format_union_itemsFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…