Skip to content

Commit adcd9f4

Browse files
committed
filter private modules
1 parent 5eed022 commit adcd9f4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

mypy/known_modules.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ def get_stdlib_modules(
169169
if max_ver is not None and python_version > max_ver:
170170
continue
171171
top_level = module.split(".")[0]
172+
# Skip private modules to avoid adding noise
173+
if top_level.startswith("_"):
174+
continue
172175
modules.add(top_level)
173176
return frozenset(modules)
174177

0 commit comments

Comments
 (0)