From f4e49e2ee6b8ae7b1ab5132b3f900b0002acda54 Mon Sep 17 00:00:00 2001 From: ZyX Date: Sun, 24 Aug 2014 19:13:47 +0400 Subject: [PATCH] Make powerline autodoc add all Segments --- docs/source/powerline_autodoc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/powerline_autodoc.py b/docs/source/powerline_autodoc.py index 4806c3cf..55e0af35 100644 --- a/docs/source/powerline_autodoc.py +++ b/docs/source/powerline_autodoc.py @@ -2,7 +2,7 @@ from sphinx.ext import autodoc from inspect import formatargspec from powerline.lint.inspect import getconfigargspec -from powerline.lib.threaded import ThreadedSegment +from powerline.segments import Segment try: from __builtin__ import unicode @@ -21,7 +21,7 @@ class ThreadedDocumenter(autodoc.FunctionDocumenter): '''Specialized documenter subclass for ThreadedSegment subclasses.''' @classmethod def can_document_member(cls, member, membername, isattr, parent): - return (isinstance(member, ThreadedSegment) or + return (isinstance(member, Segment) or super(ThreadedDocumenter, cls).can_document_member(member, membername, isattr, parent)) def format_args(self):