Skip to content

Commit ec665cc

Browse files
AlexWaygoodhauntsaninja
authored andcommitted
Fix the newly-uncovered stubtest bug
1 parent 7d987a1 commit ec665cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/stubtest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1686,7 +1686,7 @@ def get_importable_stdlib_modules() -> set[str]:
16861686
modules_by_finder[m.module_finder].add(m.name)
16871687
for finder, module_group in modules_by_finder.items():
16881688
if (
1689-
"site-packages" not in Path(finder.path).parents
1689+
"site-packages" not in Path(finder.path).parts
16901690
# if "_queue" is present, it's most likely the module finder
16911691
# for stdlib extension modules;
16921692
# if "queue" is present, it's most likely the module finder

0 commit comments

Comments
 (0)