Commit Graph

5 Commits

Author SHA1 Message Date
Claudiu Popa
cbc70dc2d8 Fix some typos 2018-08-22 08:57:23 +02:00
Caio Carrara
1d0753b0f7 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
2018-08-22 08:24:55 +02:00
ssolanki
28a2690021 fix false positive `undefined-variable`
and ``used-before-assignment`` with nonlocal keyword usage.

incorporate review comments

fix existing test case
2018-08-17 11:43:02 +05:30
ssolanki
3176bbbb6a Ignore import x.y.z as z cases for checker
`useless-import-alias`
2018-08-15 14:35:12 -04:00
ssolanki
917dee7892 add whatsnew/2.2.rst 2018-08-09 15:47:05 +05:30