summaryrefslogtreecommitdiff
path: root/pylint
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2019-06-10 10:10:44 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2019-06-20 14:09:59 +0200
commit8c30d86abc66f4e5003b01055ec398d6589a6007 (patch)
treea0033eea472bc0fba0fde4eb2f0713939bda7b8a /pylint
parent0ee1d5018849e55ee57b04c749992eaa31a29da7 (diff)
downloadpylint-git-8c30d86abc66f4e5003b01055ec398d6589a6007.tar.gz
Fix - Remove invalid syntax in python 3.4
Mypy requirements and python 3.4 seem incompatible.
Diffstat (limited to 'pylint')
-rw-r--r--pylint/checkers/base_checker.py2
-rw-r--r--pylint/message/message_handler_mix_in.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/pylint/checkers/base_checker.py b/pylint/checkers/base_checker.py
index f73f94628..ca5f88082 100644
--- a/pylint/checkers/base_checker.py
+++ b/pylint/checkers/base_checker.py
@@ -105,7 +105,7 @@ class BaseChecker(OptionsProviderMixIn):
confidence = UNDEFINED
self.linter.add_message(msgid, line, node, args, confidence, col_offset)
- def check_consistency(self) -> None:
+ def check_consistency(self):
"""Check the consistency of msgid.
msg ids for a checker should be a string of len 4, where the two first
diff --git a/pylint/message/message_handler_mix_in.py b/pylint/message/message_handler_mix_in.py
index 1c8ab400b..25f862f9e 100644
--- a/pylint/message/message_handler_mix_in.py
+++ b/pylint/message/message_handler_mix_in.py
@@ -325,7 +325,7 @@ class MessagesHandlerMixIn:
)
def _get_checkers_infos(self):
- by_checker: dict = {}
+ by_checker = {}
for checker in self.get_checkers():
name = checker.name
if name != "master":