diff options
author | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-06-15 15:01:08 +0300 |
---|---|---|
committer | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-06-15 15:01:08 +0300 |
commit | 02be22f288b2a2d39b9657f5fc5f67f15442b31c (patch) | |
tree | 6ff699ca337910e0c2414987f436f7c0fa87d2ca /astroid/objects.py | |
parent | 2519f8f74836924328ca58860bda80bf50531d96 (diff) | |
download | astroid-02be22f288b2a2d39b9657f5fc5f67f15442b31c.tar.gz |
Staticmethods retrieved with super are functions, not bound methods.
Diffstat (limited to 'astroid/objects.py')
-rw-r--r-- | astroid/objects.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/objects.py b/astroid/objects.py index b0a3e6c..a1c1da1 100644 --- a/astroid/objects.py +++ b/astroid/objects.py @@ -170,7 +170,7 @@ class Super(NodeNG): yield BoundMethod(infered, cls) elif self._scope.type == 'classmethod' and infered.type == 'method': yield infered - elif self._class_based: + elif self._class_based or infered.type == 'staticmethod': yield infered else: yield BoundMethod(infered, cls) |