Skip to content

Commit ce1d1ef

Browse files
committed
rename
1 parent 1dcdd5f commit ce1d1ef

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

mypy/errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ def is_ignored_error(self, line: int, info: ErrorInfo, ignores: dict[int, list[s
828828
)
829829
return False
830830

831-
def is_error_code_ignored(self, line: int, code: ErrorCode) -> bool:
831+
def is_ignored_error_code(self, line: int, code: ErrorCode) -> bool:
832832
"""Check if an error with the given code on the given line would be ignored.
833833
834834
This is useful to skip expensive error message processing (e.g. fuzzy matching)

mypy/semanal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7480,7 +7480,7 @@ def name_not_defined(self, name: str, ctx: Context, namespace: str | None = None
74807480
and "." not in name
74817481
and not (name.startswith("__") and name.endswith("__"))
74827482
and f"builtins.{name}" not in SUGGESTED_TEST_FIXTURES
7483-
and not self.errors.is_error_code_ignored(ctx.line, codes.NAME_DEFINED)
7483+
and not self.errors.is_ignored_error_code(ctx.line, codes.NAME_DEFINED)
74847484
):
74857485
alternatives = self._get_names_in_scope()
74867486
alternatives.discard(name)

0 commit comments

Comments
 (0)