Skip to content

Commit 3f99fe7

Browse files
Fix related to the upgrade to mypy 1.15
1 parent 02ed8cb commit 3f99fe7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

pylint/lint/message_state_handler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def process_tokens(self, tokens: list[tokenize.TokenInfo]) -> None:
378378
args=("disable-all", "skip-file"),
379379
)
380380
self.linter.add_message("file-ignored", line=start[0])
381-
self._ignore_file = True
381+
self._ignore_file: bool = True
382382
return
383383
try:
384384
meth = self._options_methods[pragma_repr.action]

pylint/testutils/functional/lint_module_output_update.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ class TestDialect(csv.excel):
2222
delimiter = ":"
2323
lineterminator = "\n"
2424

25-
# TestDialect inherit from csv.excel, which inherit from Dialect
26-
# probably something wrong in csv typing
27-
csv.register_dialect("test", TestDialect) # type: ignore[arg-type]
25+
csv.register_dialect("test", TestDialect)
2826

2927
def _check_output_text(
3028
self,

0 commit comments

Comments
 (0)