summaryrefslogtreecommitdiff
path: root/astroid
diff options
context:
space:
mode:
authorhippo91 <guillaume.peillex@gmail.com>2021-02-11 18:42:24 +0100
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-02-12 08:26:52 +0100
commitdc560d470b3351cfc886f62688ee86dcbbb1a3cd (patch)
treec39b5ca86fda6699afcb9c2df31a6f2464be0e51 /astroid
parent0d8ed3f88deef0b2e85b5310b82cc3998220dc3c (diff)
downloadastroid-git-dc560d470b3351cfc886f62688ee86dcbbb1a3cd.tar.gz
The node.bases has not to be tweaked otherwise leads to false positive unused-import due to the fact that six.with_metaclass is not consumed. Adds a unittest to check that bases attribute holds a call node and that ancestors attributes returns the correct class hierarchy.
Diffstat (limited to 'astroid')
-rw-r--r--astroid/brain/brain_six.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/astroid/brain/brain_six.py b/astroid/brain/brain_six.py
index a998213f..ed46d872 100644
--- a/astroid/brain/brain_six.py
+++ b/astroid/brain/brain_six.py
@@ -221,7 +221,6 @@ def transform_six_with_metaclass(node):
"""
call = node.bases[0]
node._metaclass = call.args[0]
- node.bases = call.args[1:]
register_module_extender(MANAGER, "six", six_moves_transform)