Skip to content

Commit

Permalink
modulefinder: remove unused argument
Browse files Browse the repository at this point in the history
This was removed in python#9616
  • Loading branch information
hauntsaninja committed Oct 31, 2020
1 parent 361653b commit 35d5c69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion mypy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
4 changes: 1 addition & 3 deletions mypy/modulefinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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()
Expand Down

0 comments on commit 35d5c69

Please sign in to comment.