We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d987a1 commit ec665ccCopy full SHA for ec665cc
mypy/stubtest.py
@@ -1686,7 +1686,7 @@ def get_importable_stdlib_modules() -> set[str]:
1686
modules_by_finder[m.module_finder].add(m.name)
1687
for finder, module_group in modules_by_finder.items():
1688
if (
1689
- "site-packages" not in Path(finder.path).parents
+ "site-packages" not in Path(finder.path).parts
1690
# if "_queue" is present, it's most likely the module finder
1691
# for stdlib extension modules;
1692
# if "queue" is present, it's most likely the module finder
0 commit comments