1
0
forked from VimPlug/jedi

Include __init__ call signature in Class.doc

This commit is contained in:
Takafumi Arakaki
2013-02-24 22:56:43 +01:00
parent 4ba9fd2b68
commit 38fc49022f
3 changed files with 27 additions and 3 deletions

View File

@@ -288,7 +288,8 @@ class Class(use_metaclass(cache.CachedMetaClass, pr.IsScope)):
def __getattr__(self, name):
if name not in ['start_pos', 'end_pos', 'parent', 'asserts', 'docstr',
'get_imports', 'get_parent_until', 'get_code', 'subscopes']:
'doc', 'get_imports', 'get_parent_until', 'get_code',
'subscopes']:
raise AttributeError("Don't touch this: %s of %s !" % (name, self))
return getattr(self.base, name)