Skip to content

Commit 6d9472e

Browse files
committed
Replace lru_cache with functools.cache
1 parent b3eff87 commit 6d9472e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/modulefinder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ def default_lib_path(
751751
return path
752752

753753

754-
@functools.lru_cache(maxsize=None)
754+
@functools.cache
755755
def get_search_dirs(python_executable: str | None) -> tuple[list[str], list[str]]:
756756
"""Find package directories for given python. Guaranteed to return absolute paths.
757757

0 commit comments

Comments
 (0)