Include __init__ call signature in Class.doc

This commit is contained in:
Takafumi Arakaki committed 2013-02-25 01:50:31 +01:00
1 parent 4ba9fd2b68
commit 38fc49022f
3 files changed
+27 -3

No files matched your search

+2 -1
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)