From 35d5c69cfe44e3f13b1ebd789892da7bacb5a271 Mon Sep 17 00:00:00 2001 From: hauntsaninja <> Date: Sat, 31 Oct 2020 13:56:29 -0700 Subject: [PATCH] modulefinder: remove unused argument This was removed in #9616 --- mypy/main.py | 2 +- mypy/modulefinder.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/mypy/main.py b/mypy/main.py index 7de1f57dfece..763bd9e95638 100644 --- a/mypy/main.py +++ b/mypy/main.py @@ -930,7 +930,7 @@ def set_strict_flags() -> None: ()) targets = [] # TODO: use the same cache that the BuildManager will - cache = FindModuleCache(search_paths, fscache, options, special_opts.packages) + cache = FindModuleCache(search_paths, fscache, options) for p in special_opts.packages: if os.sep in p or os.altsep and os.altsep in p: fail("Package name '{}' cannot have a slash in it.".format(p), diff --git a/mypy/modulefinder.py b/mypy/modulefinder.py index e2fce6e46cfd..7675c69830a2 100644 --- a/mypy/modulefinder.py +++ b/mypy/modulefinder.py @@ -106,8 +106,7 @@ class FindModuleCache: def __init__(self, search_paths: SearchPaths, fscache: Optional[FileSystemCache] = None, - options: Optional[Options] = None, - ns_packages: Optional[List[str]] = None) -> None: + options: Optional[Options] = None) -> None: self.search_paths = search_paths self.fscache = fscache or FileSystemCache() # Cache for get_toplevel_possibilities: @@ -117,7 +116,6 @@ def __init__(self, self.results = {} # type: Dict[str, ModuleSearchResult] self.ns_ancestors = {} # type: Dict[str, str] self.options = options - self.ns_packages = ns_packages or [] # type: List[str] def clear(self) -> None: self.results.clear()