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

Function format_ignore

mypy/test/test_nativeparse.py:118–123  ·  view source on GitHub ↗
(ignore: tuple[int, list[str]])

Source from the content-addressed store, hash-verified

116
117
118def format_ignore(ignore: tuple[int, list[str]]) -> str:
119 line, codes = ignore
120 if not codes:
121 return f"ignore: {line}"
122 else:
123 return f"ignore: {line} [{', '.join(codes)}]"
124
125
126def load_tree(node: MypyFile, options: Options) -> list[ParseError]:

Callers 1

test_parserFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…