Skip to content

Commit

Permalink
find_sources: fix lint (#12403)
Browse files Browse the repository at this point in the history
flake8-bugbear released a new version with new checks.
SourceFinder is small (and we don't have many of them), so this isn't a
particularly big deal.
  • Loading branch information
hauntsaninja authored Mar 21, 2022
1 parent abab1cd commit 8427df1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mypy/find_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def crawl_up(self, path: str) -> Tuple[str, str]:
def crawl_up_dir(self, dir: str) -> Tuple[str, str]:
return self._crawl_up_helper(dir) or ("", dir)

@functools.lru_cache()
@functools.lru_cache() # noqa: B019
def _crawl_up_helper(self, dir: str) -> Optional[Tuple[str, str]]:
"""Given a directory, maybe returns module and base directory.
Expand Down

0 comments on commit 8427df1

Please sign in to comment.