Permalink
Browse files

add magic methods also to non-object inheritances, also important for…

… jedi-vim issue 32
  • Loading branch information...
1 parent a7c806e commit 03f4dd5516f635d3382190352f000c08f019aa19 @davidhalter committed Nov 19, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 jedi/evaluate.py
View
@@ -349,6 +349,9 @@ def get_super_classes(self):
debug.warning('Received non class, as a super class')
continue # Just ignore other stuff (user input error).
supers.append(cls)
+ if not supers and self.base.parent != builtin.Builtin.scope:
+ # add `object` to classes
+ supers += get_scopes_for_name(builtin.Builtin.scope, 'object')
return supers
@memoize_default(default=[])

0 comments on commit 03f4dd5

Please sign in to comment.