MCPcopy Create free account
hub / github.com/python/mypy / should_skip_path

Function should_skip_path

mypy/report.py:136–143  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

134
135
136def should_skip_path(path: str) -> bool:
137 if stats.is_special_module(path):
138 return True
139 if path.startswith(".."):
140 return True
141 if "stubs" in path.split("/") or "stubs" in path.split(os.sep):
142 return True
143 return False
144
145
146def iterate_python_lines(path: str) -> Iterator[tuple[int, str]]:

Callers 2

on_fileMethod · 0.85
on_fileMethod · 0.85

Calls 2

splitMethod · 0.80
startswithMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…