show the docstring for a type before the formatted sample values
--HG-- extra : source : e5fa8d5e8dc27b91fca92e8b3a109981f2ed37b0
This commit is contained in:
parent
4fb26f6f2d
commit
322dca63c5
@ -194,6 +194,8 @@ class TypeDocumenter(autodoc.ClassDocumenter):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
def add_content(self, more_content, no_docstring=False):
|
def add_content(self, more_content, no_docstring=False):
|
||||||
|
super(TypeDocumenter, self).add_content(
|
||||||
|
more_content, no_docstring)
|
||||||
protocols = get_protocols(
|
protocols = get_protocols(
|
||||||
self.options.protocols or self.env.app.config.wsme_protocols
|
self.options.protocols or self.env.app.config.wsme_protocols
|
||||||
)
|
)
|
||||||
@ -220,8 +222,6 @@ class TypeDocumenter(autodoc.ClassDocumenter):
|
|||||||
self.add_line(line, u'<wsme.sphinxext')
|
self.add_line(line, u'<wsme.sphinxext')
|
||||||
|
|
||||||
self.add_line(u'', '<wsme.sphinxext>')
|
self.add_line(u'', '<wsme.sphinxext>')
|
||||||
super(TypeDocumenter, self).add_content(
|
|
||||||
more_content, no_docstring)
|
|
||||||
|
|
||||||
|
|
||||||
class AttributeDocumenter(autodoc.AttributeDocumenter):
|
class AttributeDocumenter(autodoc.AttributeDocumenter):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user