File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -618,7 +618,7 @@ def accept_loop(
618618 if on_enter_body is not None :
619619 on_enter_body ()
620620
621- with IterationErrorWatcher (self .msg .errors , iter_errors ) as watcher :
621+ with IterationErrorWatcher (self .msg .errors , iter_errors ):
622622 self .accept (body )
623623
624624 partials_new = sum (len (pts .map ) for pts in self .partial_types )
@@ -4962,7 +4962,7 @@ def visit_try_stmt(self, s: TryStmt) -> None:
49624962 if s .finally_body :
49634963 # First we check finally_body is type safe on all abnormal exit paths
49644964 iter_errors = IterationDependentErrors ()
4965- with IterationErrorWatcher (self .msg .errors , iter_errors ) as watcher :
4965+ with IterationErrorWatcher (self .msg .errors , iter_errors ):
49664966 self .accept (s .finally_body )
49674967
49684968 if s .finally_body :
@@ -4979,7 +4979,7 @@ def visit_try_stmt(self, s: TryStmt) -> None:
49794979 # that follows the try statement.)
49804980 assert iter_errors is not None
49814981 if not self .binder .is_unreachable ():
4982- with IterationErrorWatcher (self .msg .errors , iter_errors ) as watcher :
4982+ with IterationErrorWatcher (self .msg .errors , iter_errors ):
49834983 self .accept (s .finally_body )
49844984 self .msg .iteration_dependent_errors (iter_errors )
49854985
You can’t perform that action at this time.
0 commit comments