Make powerline autodoc add all Segments

This commit is contained in:
ZyX 2014-08-24 19:13:47 +04:00
parent 04c0030fe1
commit f4e49e2ee6
1 changed files with 2 additions and 2 deletions

View File

@ -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):