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

Function format_list

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

Source from the content-addressed store, hash-verified

2664 return format_type_inner(typ, verbosity, options, fullnames)
2665
2666 def format_list(types: Sequence[Type]) -> str:
2667 return ", ".join(format(typ) for typ in types)
2668
2669 def format_union_items(types: Sequence[Type]) -> list[str]:
2670 formatted = [format(typ) for typ in types if format(typ) != "None"]

Callers 1

format_type_innerFunction · 0.85

Calls 2

formatFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…