diff options
author | Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> | 2021-11-17 14:13:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-17 14:13:34 +0100 |
commit | b91cc8dbb47ce622b73c766b3a53da270bdb24e9 (patch) | |
tree | 72797301578a928011bf9d9c433d9b5482f2aa48 /pylint/reporters | |
parent | 7d2b6c9bd807dda7502e739c7b9fb2182d89f457 (diff) | |
download | pylint-git-b91cc8dbb47ce622b73c766b3a53da270bdb24e9.tar.gz |
Add error codes to all ``type: ignore`` (#5329)
Diffstat (limited to 'pylint/reporters')
-rw-r--r-- | pylint/reporters/__init__.py | 2 | ||||
-rw-r--r-- | pylint/reporters/reports_handler_mix_in.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pylint/reporters/__init__.py b/pylint/reporters/__init__.py index 39cf5fb0a..65231e287 100644 --- a/pylint/reporters/__init__.py +++ b/pylint/reporters/__init__.py @@ -36,7 +36,7 @@ if TYPE_CHECKING: def initialize(linter: "PyLinter") -> None: """initialize linter with reporters in this package""" - utils.register_plugins(linter, __path__[0]) # type: ignore # Fixed in https://github.com/python/mypy/pull/9454 + utils.register_plugins(linter, __path__[0]) # type: ignore[name-defined] # Fixed in https://github.com/python/mypy/pull/9454 __all__ = [ diff --git a/pylint/reporters/reports_handler_mix_in.py b/pylint/reporters/reports_handler_mix_in.py index 14631740d..27af31027 100644 --- a/pylint/reporters/reports_handler_mix_in.py +++ b/pylint/reporters/reports_handler_mix_in.py @@ -57,7 +57,7 @@ class ReportsHandlerMixIn: """ return self._reports_state.get(reportid, True) - def make_reports( # type: ignore # ReportsHandlerMixIn is always mixed with PyLinter + def make_reports( # type: ignore[misc] # ReportsHandlerMixIn is always mixed with PyLinter self: "PyLinter", stats: LinterStats, old_stats: Optional[LinterStats], |