summaryrefslogtreecommitdiff
path: root/pylint/message/message.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/message/message.py')
-rw-r--r--pylint/message/message.py24
1 files changed, 3 insertions, 21 deletions
diff --git a/pylint/message/message.py b/pylint/message/message.py
index 23dd6c082..6ee8c5f78 100644
--- a/pylint/message/message.py
+++ b/pylint/message/message.py
@@ -1,11 +1,10 @@
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
-# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE
-# Copyright (c) https://github.com/PyCQA/pylint/blob/main/CONTRIBUTORS.txt
+# For details: https://github.com/pylint-dev/pylint/blob/main/LICENSE
+# Copyright (c) https://github.com/pylint-dev/pylint/blob/main/CONTRIBUTORS.txt
from __future__ import annotations
from dataclasses import asdict, dataclass
-from warnings import warn
from pylint.constants import MSG_TYPES
from pylint.interfaces import UNDEFINED, Confidence
@@ -35,27 +34,10 @@ class Message: # pylint: disable=too-many-instance-attributes
self,
msg_id: str,
symbol: str,
- location: tuple[str, str, str, str, int, int] | MessageLocationTuple,
+ location: MessageLocationTuple,
msg: str,
confidence: Confidence | None,
) -> None:
- if not isinstance(location, MessageLocationTuple):
- warn(
- "In pylint 3.0, Messages will only accept a MessageLocationTuple as location parameter",
- DeprecationWarning,
- stacklevel=2,
- )
- location = MessageLocationTuple(
- location[0],
- location[1],
- location[2],
- location[3],
- location[4],
- location[5],
- None,
- None,
- )
-
self.msg_id = msg_id
self.symbol = symbol
self.msg = msg