diff --git a/mypy/modulefinder.py b/mypy/modulefinder.py index fdd89837002f..a5d28a30dea8 100644 --- a/mypy/modulefinder.py +++ b/mypy/modulefinder.py @@ -751,7 +751,7 @@ def default_lib_path( return path -@functools.lru_cache(maxsize=None) +@functools.cache def get_search_dirs(python_executable: str | None) -> tuple[list[str], list[str]]: """Find package directories for given python. Guaranteed to return absolute paths.