Skip to content

Commit 6d7ea08

Browse files
committed
remove now unnecessary argument
1 parent 5e30652 commit 6d7ea08

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mypy/checker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ def accept_loop(
643643

644644
for error_info in watcher.yield_error_infos():
645645
self.msg.fail(*error_info[:2], code=error_info[2])
646-
for note_info, context in watcher.yield_note_infos(self.options):
646+
for note_info, context in watcher.yield_note_infos():
647647
self.msg.reveal_type(note_info, context)
648648

649649
# If exit_condition is set, assume it must be False on exit from the loop:
@@ -4987,7 +4987,7 @@ def visit_try_stmt(self, s: TryStmt) -> None:
49874987

49884988
for error_info in watcher.yield_error_infos():
49894989
self.msg.fail(*error_info[:2], code=error_info[2])
4990-
for note_info, context in watcher.yield_note_infos(self.options):
4990+
for note_info, context in watcher.yield_note_infos():
49914991
self.msg.reveal_type(note_info, context)
49924992

49934993
def visit_try_without_finally(self, s: TryStmt, try_frame: bool) -> None:

mypy/errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def yield_error_infos(self) -> Iterator[tuple[str, Context, ErrorCode]]:
317317
context.end_column = error_info[5]
318318
yield error_info[1], context, error_info[0]
319319

320-
def yield_note_infos(self, options: Options) -> Iterator[tuple[Type, Context]]:
320+
def yield_note_infos(self) -> Iterator[tuple[Type, Context]]:
321321
"""Yield all types revealed in at least one iteration step."""
322322

323323
for note_info, types in self.iteration_dependent_errors.revealed_types.items():

0 commit comments

Comments
 (0)