diff --git a/pylint-Fix_is_subclass_of_when_one_param_is_not_ClassDef.patch b/pylint-Fix_is_subclass_of_when_one_param_is_not_ClassDef.patch index 4105a72..fa3fd15 100644 --- a/pylint-Fix_is_subclass_of_when_one_param_is_not_ClassDef.patch +++ b/pylint-Fix_is_subclass_of_when_one_param_is_not_ClassDef.patch @@ -1,22 +1,3 @@ -From 61b5a758a2a03d3e22cdcb7b9420e71c3f0a2d77 Mon Sep 17 00:00:00 2001 -From: Caio Carrara -Date: Tue, 21 Aug 2018 13:06:17 -0300 -Subject: [PATCH] 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 ---- - CONTRIBUTORS.txt | 2 ++ - ChangeLog | 3 +++ - doc/whatsnew/2.2.rst | 2 +- - pylint/checkers/utils.py | 3 ++- - pylint/test/unittest_checkers_utils.py | 36 ++++++++++++++++++++++++++ - 5 files changed, 44 insertions(+), 2 deletions(-) - diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index 1e4c47745..7cd2de4a7 100644 --- a/CONTRIBUTORS.txt