Skip to content

Commit

Permalink
Fix the newly-uncovered stubtest bug
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexWaygood authored and hauntsaninja committed Sep 16, 2023
1 parent 7d987a1 commit ec665cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypy/stubtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1686,7 +1686,7 @@ def get_importable_stdlib_modules() -> set[str]:
modules_by_finder[m.module_finder].add(m.name)
for finder, module_group in modules_by_finder.items():
if (
"site-packages" not in Path(finder.path).parents
"site-packages" not in Path(finder.path).parts
# if "_queue" is present, it's most likely the module finder
# for stdlib extension modules;
# if "queue" is present, it's most likely the module finder
Expand Down

0 comments on commit ec665cc

Please sign in to comment.