Skip to content

Commit

Permalink
fixup! Search sys.path for PEP-561 compliant packages
Browse files Browse the repository at this point in the history
  • Loading branch information
AWhetter committed Apr 19, 2022
1 parent 7b88327 commit 0c678bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mypy/modulefinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ def _find_module_non_stub_helper(self, components: List[str],
elif not plausible_match and (self.fscache.isdir(dir_path)
or self.fscache.isfile(dir_path + ".py")):
plausible_match = True
if not self.fscache.isdir(dir_path):
break
if is_legacy_bundled_package(components[0], self.python_major_ver):
if (len(components) == 1
or (self.find_module(components[0]) is
Expand Down

0 comments on commit 0c678bc

Please sign in to comment.