summaryrefslogtreecommitdiff
path: root/pylint/utils
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2021-09-23 08:21:15 +0200
committerGitHub <noreply@github.com>2021-09-23 08:21:15 +0200
commit9d0b2827ee92279a9caa0b448ec4b0b0dcdfd3ba (patch)
tree2f07afe03b60bd555894abc694c3594102e94629 /pylint/utils
parent1e675abcc2aa931421d7ce300908e734a93fd790 (diff)
downloadpylint-git-9d0b2827ee92279a9caa0b448ec4b0b0dcdfd3ba.tar.gz
Refactor of ``FileState.handle_ignored_message()`` (#5064)
Remove unnecessary parameters
Diffstat (limited to 'pylint/utils')
-rw-r--r--pylint/utils/file_state.py13
1 files changed, 2 insertions, 11 deletions
diff --git a/pylint/utils/file_state.py b/pylint/utils/file_state.py
index 7167a766b..ebd51d31a 100644
--- a/pylint/utils/file_state.py
+++ b/pylint/utils/file_state.py
@@ -5,7 +5,6 @@ import collections
import sys
from typing import (
TYPE_CHECKING,
- Any,
DefaultDict,
Dict,
Iterator,
@@ -18,7 +17,6 @@ from typing import (
from astroid import nodes
from pylint.constants import MSG_STATE_SCOPE_MODULE, WarningScope
-from pylint.interfaces import Confidence
if sys.version_info >= (3, 8):
from typing import Literal
@@ -132,20 +130,13 @@ class FileState:
self._module_msgs_state[msg.msgid] = {line: status}
def handle_ignored_message(
- self,
- state_scope: Optional[Literal[0, 1, 2]],
- msgid: str,
- line: int,
- node: nodes.NodeNG,
- args: Any,
- confidence: Confidence,
+ self, state_scope: Optional[Literal[0, 1, 2]], msgid: str, line: int
) -> None:
- # pylint: disable=unused-argument
"""Report an ignored message.
state_scope is either MSG_STATE_SCOPE_MODULE or MSG_STATE_SCOPE_CONFIG,
depending on whether the message was disabled locally in the module,
- or globally. The other arguments are the same as for add_message.
+ or globally.
"""
if state_scope == MSG_STATE_SCOPE_MODULE:
try: