summaryrefslogtreecommitdiff
path: root/pylint/lint/parallel.py
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2021-11-17 14:13:34 +0100
committerGitHub <noreply@github.com>2021-11-17 14:13:34 +0100
commitb91cc8dbb47ce622b73c766b3a53da270bdb24e9 (patch)
tree72797301578a928011bf9d9c433d9b5482f2aa48 /pylint/lint/parallel.py
parent7d2b6c9bd807dda7502e739c7b9fb2182d89f457 (diff)
downloadpylint-git-b91cc8dbb47ce622b73c766b3a53da270bdb24e9.tar.gz
Add error codes to all ``type: ignore`` (#5329)
Diffstat (limited to 'pylint/lint/parallel.py')
-rw-r--r--pylint/lint/parallel.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pylint/lint/parallel.py b/pylint/lint/parallel.py
index f148e913f..f6bd2aa09 100644
--- a/pylint/lint/parallel.py
+++ b/pylint/lint/parallel.py
@@ -14,7 +14,7 @@ from pylint.utils import LinterStats, merge_stats
try:
import multiprocessing
except ImportError:
- multiprocessing = None # type: ignore
+ multiprocessing = None # type: ignore[assignment]
# PyLinter object used by worker processes when checking files using multiprocessing
# should only be used by the worker processes
@@ -139,7 +139,7 @@ def check_parallel(linter, jobs, files: Iterable[FileItem], arguments=None):
linter.set_current_module(module, file_path)
for msg in messages:
msg = Message(*msg)
- linter.reporter.handle_message(msg) # type: ignore # linter.set_reporter() call above makes linter have a reporter attr
+ linter.reporter.handle_message(msg) # type: ignore[attr-defined] # linter.set_reporter() call above makes linter have a reporter attr
all_stats.append(stats)
all_mapreduce_data[worker_idx].append(mapreduce_data)
linter.msg_status |= msg_status