diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2017-08-15 11:31:08 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2017-08-15 11:31:08 +0200 |
commit | cb8ebdb02ba208a8c38bba622bd85ad37a7a2c21 (patch) | |
tree | f11392693c28e9718948e5afb43975780bd5c5fa /pylint/checkers/classes.py | |
parent | 660c15d58a6cd8088d99f7db2cfddf81b91121f9 (diff) | |
download | pylint-git-cb8ebdb02ba208a8c38bba622bd85ad37a7a2c21.tar.gz |
Add a couple of Uninferable filters where we weren't using any
Diffstat (limited to 'pylint/checkers/classes.py')
-rw-r--r-- | pylint/checkers/classes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pylint/checkers/classes.py b/pylint/checkers/classes.py index 1c4746ea7..985e4e4ee 100644 --- a/pylint/checkers/classes.py +++ b/pylint/checkers/classes.py @@ -799,7 +799,7 @@ a metaclass class method.'} def _check_slots_elt(self, elt): for infered in elt.infer(): - if infered is astroid.YES: + if infered is astroid.Uninferable: continue if (not isinstance(infered, astroid.Const) or not isinstance(infered.value, six.string_types)): @@ -1172,7 +1172,7 @@ a metaclass class method.'} return try: for klass in expr.expr.infer(): - if klass is astroid.YES: + if klass is astroid.Uninferable: continue # The infered klass can be super(), which was # assigned to a variable and the `__init__` |