summaryrefslogtreecommitdiff
path: root/pylint/typing.py
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2021-10-17 10:37:02 +0200
committerGitHub <noreply@github.com>2021-10-17 10:37:02 +0200
commit97048ded8e7528e927f7f7818beb3d5d79662b03 (patch)
tree03e9ec6e2c314e31b6ed5fd35ea13ecb4d421147 /pylint/typing.py
parentc332fda9c5e8a2f2bf6588eeb90b3cf5541dc63d (diff)
downloadpylint-git-97048ded8e7528e927f7f7818beb3d5d79662b03.tar.gz
Merge ``MessagesHandlerMixIn`` into ``PyLinter`` (#5136)
* Merge ``MessagesHandlerMixIn`` into ``PyLinter``
Diffstat (limited to 'pylint/typing.py')
-rw-r--r--pylint/typing.py12
1 files changed, 11 insertions, 1 deletions
diff --git a/pylint/typing.py b/pylint/typing.py
index 2d8e74763..7ea72cff3 100644
--- a/pylint/typing.py
+++ b/pylint/typing.py
@@ -3,7 +3,7 @@
"""A collection of typing utilities."""
import sys
-from typing import NamedTuple, Union
+from typing import NamedTuple, Optional, Union
if sys.version_info >= (3, 8):
from typing import Literal, TypedDict
@@ -52,3 +52,13 @@ class MessageLocationTuple(NamedTuple):
obj: str
line: int
column: int
+
+
+class ManagedMessage(NamedTuple):
+ """Tuple with information ahout a managed message of the linter"""
+
+ name: Optional[str]
+ msgid: str
+ symbol: str
+ line: Optional[int]
+ is_disabled: bool