summaryrefslogtreecommitdiff
path: root/pylint/checkers
diff options
context:
space:
mode:
authorLaura M?dioni <laura.medioni@logilab.fr>2015-11-24 11:38:10 +0100
committerLaura M?dioni <laura.medioni@logilab.fr>2015-11-24 11:38:10 +0100
commit07253b750913858e119b8a31e055ddad4c3942f3 (patch)
treeb4dbc6120378b4d4045acc9bedaea999b2190454 /pylint/checkers
parent7657744488044b5ed817ed0e3c28314462609266 (diff)
downloadpylint-07253b750913858e119b8a31e055ddad4c3942f3.tar.gz
Add some more comments about the limitations of this rule
related to issue #674
Diffstat (limited to 'pylint/checkers')
-rw-r--r--pylint/checkers/base.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/pylint/checkers/base.py b/pylint/checkers/base.py
index 74e26ac..224c8d6 100644
--- a/pylint/checkers/base.py
+++ b/pylint/checkers/base.py
@@ -1886,6 +1886,13 @@ class MultipleTypesChecker(BaseChecker):
"""Checks for variable type redefinitions (NoneType excepted)
At a function, method, class or module scope
+
+ This rule could be improved:
+ - Currently, if an attribute is set to different types in 2 methods of a
+ same class, it won't be detected (see functional test)
+ - One could improve the support for inference on assignment with tuples,
+ ifexpr, etc. Also it would be great to have support for inference on
+ str.split()
"""
__implements__ = IAstroidChecker