diff options
author | Caio Carrara <ccarrara@redhat.com> | 2018-08-21 13:06:17 -0300 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2018-08-22 08:24:55 +0200 |
commit | 1d0753b0f7ff11e29b29810e7f7aff434c286a45 (patch) | |
tree | 4637da32f9448880ba21ffb0628433d581831192 /ChangeLog | |
parent | 49f47b5b2a32b13d9b0dfef8de82b1510a3ae28d (diff) | |
download | pylint-git-1d0753b0f7ff11e29b29810e7f7aff434c286a45.tar.gz |
Fix is_subclass_of when one param is not ClassDef
Currently the function `checkers.utils.is_subclass_of()` is raising a
`NoneType object has no attribute name` exception when only one of the
arguments (nodes) is `None`.
This change fix that updating the function to make sure all params are
an instance of `astroid.ClassDef` before the proper check
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -44,6 +44,9 @@ Release date: TBA * Consider tuples in exception handler for ``try-except-raise``. Close #2389 + * Fix astroid.ClassDef check in checkers.utils.is_subclass_of + + What's New in Pylint 2.1.1? =========================== |