Skip to content

Commit 5b6dc5f

Browse files
committed
revise comment
1 parent 62df7bb commit 5b6dc5f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

mypy/errors.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@ class Errors:
223223
# (path -> line -> error-codes)
224224
ignored_lines: dict[str, dict[int, list[str]]]
225225

226-
# Lines that were skipped during semantic analysis (would not be type-checked).
226+
# Lines that were skipped during semantic analysis e.g. due to ALWAYS_FALSE, MYPY_FALSE,
227+
# or platform/version checks. Those lines would not be type-checked.
227228
skipped_lines: dict[str, set[int]]
228229

229230
# Lines on which an error was actually ignored.

mypy/nodes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,8 @@ class MypyFile(SymbolNode):
314314
# If the value is empty, ignore all errors; otherwise, the list contains all
315315
# error codes to ignore.
316316
ignored_lines: dict[int, list[str]]
317-
# Lines that were skipped during semantic analysis (would not be type-checked).
317+
# Lines that were skipped during semantic analysis e.g. due to ALWAYS_FALSE, MYPY_FALSE,
318+
# or platform/version checks. Those lines would not be type-checked.
318319
skipped_lines: set[int]
319320
# Is this file represented by a stub file (.pyi)?
320321
is_stub: bool

0 commit comments

Comments
 (0)