diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2015-08-25 21:37:34 +0300 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2015-08-25 21:37:34 +0300 |
commit | 6fbe7dfe39e4938dcae3c6bbafa05249f43715ad (patch) | |
tree | 42f6332e2c2dd39fce6f1399953777d5b3a50100 /astroid/scoped_nodes.py | |
parent | 280131895bc9d70e123273dc0dbb57ee07d1a5a5 (diff) | |
download | astroid-6fbe7dfe39e4938dcae3c6bbafa05249f43715ad.tar.gz |
Change the order of the mixins, so that mixins are the first in the MRO before the actual roots.
Diffstat (limited to 'astroid/scoped_nodes.py')
-rw-r--r-- | astroid/scoped_nodes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/astroid/scoped_nodes.py b/astroid/scoped_nodes.py index 3ff21cd..5f42903 100644 --- a/astroid/scoped_nodes.py +++ b/astroid/scoped_nodes.py @@ -631,7 +631,7 @@ def _infer_decorator_callchain(node): return 'staticmethod' -class Lambda(LocalsDictNodeNG, mixins.FilterStmtsMixin): +class Lambda(mixins.FilterStmtsMixin, LocalsDictNodeNG): _astroid_fields = ('args', 'body',) _other_fields = ('locals',) name = '<lambda>' @@ -1053,7 +1053,7 @@ def get_wrapping_class(node): -class ClassDef(bases.Statement, LocalsDictNodeNG, mixins.FilterStmtsMixin): +class ClassDef(mixins.FilterStmtsMixin, LocalsDictNodeNG, bases.Statement): # some of the attributes below are set by the builder module or # by a raw factories |