1
0
forked from VimPlug/jedi

using super() in actual executed classes wasn't possible. fixes #421

This commit is contained in:
Dave Halter
2014-07-30 11:27:27 +02:00
parent 53671bca84
commit 3c92d175da
3 changed files with 16 additions and 5 deletions

View File

@@ -176,7 +176,7 @@ class Instance(use_metaclass(CachedMetaClass, Executable)):
def __getattr__(self, name):
if name not in ['start_pos', 'end_pos', 'name', 'get_imports',
'doc', 'raw_doc', 'asserts']:
'doc', 'raw_doc', 'asserts', 'py_bases']:
raise AttributeError("Instance %s: Don't touch this (%s)!"
% (self, name))
return getattr(self.base, name)