Skip to content

Commit a3cc175

Browse files
committed
Drop modules arg to propagate_changes_using_dependencies
1 parent 106867e commit a3cc175

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

mypy/server/update.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,7 @@ def update_single(self, module: str, path: str) -> Tuple[List[str],
283283
update_dependencies({module: tree}, self.deps, graph, self.options)
284284
propagate_changes_using_dependencies(manager, graph, self.deps, triggered,
285285
{module},
286-
self.previous_targets_with_errors,
287-
self.manager.modules)
286+
self.previous_targets_with_errors)
288287

289288
# Preserve state needed for the next update.
290289
self.previous_targets_with_errors = manager.errors.targets()
@@ -718,8 +717,7 @@ def propagate_changes_using_dependencies(
718717
deps: Dict[str, Set[str]],
719718
triggered: Set[str],
720719
up_to_date_modules: Set[str],
721-
targets_with_errors: Set[str],
722-
modules: Iterable[str]) -> None:
720+
targets_with_errors: Set[str]) -> None:
723721
# TODO: Multiple type checking passes
724722
num_iter = 0
725723

@@ -734,7 +732,7 @@ def propagate_changes_using_dependencies(
734732
# Also process targets that used to have errors, as otherwise some
735733
# errors might be lost.
736734
for target in targets_with_errors:
737-
id = module_prefix(modules, target)
735+
id = module_prefix(manager.modules, target)
738736
if id is not None and id not in up_to_date_modules:
739737
if id not in todo:
740738
todo[id] = set()

0 commit comments

Comments
 (0)