From 587789ebda7be5fb09b798ac016d9f444ca0331a Mon Sep 17 00:00:00 2001 From: ZyX Date: Sun, 7 Apr 2013 19:09:03 +0400 Subject: [PATCH] =?UTF-8?q?Fix=20documentation=20for=20ThreadedSegment=20c?= =?UTF-8?q?lasses=20with=20@staticmethod=E2=80=99s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/source/powerline_autodoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/powerline_autodoc.py b/docs/source/powerline_autodoc.py index 613f9a85..87412cfa 100644 --- a/docs/source/powerline_autodoc.py +++ b/docs/source/powerline_autodoc.py @@ -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: