Skip to content

Commit 8427df1

Browse files
authored
find_sources: fix lint (#12403)
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.
1 parent abab1cd commit 8427df1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/find_sources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def crawl_up(self, path: str) -> Tuple[str, str]:
160160
def crawl_up_dir(self, dir: str) -> Tuple[str, str]:
161161
return self._crawl_up_helper(dir) or ("", dir)
162162

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

0 commit comments

Comments
 (0)