Fix documentation for ThreadedSegment classes with @staticmethod’s

This commit is contained in:
ZyX 2013-04-07 19:09:03 +04:00
parent 9250d794d7
commit 587789ebda
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ class ThreadedDocumenter(autodoc.FunctionDocumenter):
(arg == 'segment_info' and
getattr(self.object, 'powerline_requires_segment_info', None)) or
(arg == 'pl') or
(method.startswith('render') and 1-i == len(argspec.args)) or
(method.startswith('render') and (1 if argspec.args[0] == 'self' else 0) - i == len(argspec.args)) or
arg in args):
continue
if argspec.defaults and len(argspec.defaults) >= -i: