Make powerline autodoc add all Segments
This commit is contained in:
parent
04c0030fe1
commit
f4e49e2ee6
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue