diff --git a/wsmeext/sphinxext.py b/wsmeext/sphinxext.py index a513f53..2463956 100644 --- a/wsmeext/sphinxext.py +++ b/wsmeext/sphinxext.py @@ -223,13 +223,12 @@ class TypeDocumenter(autodoc.ClassDocumenter): else: return False - def add_content(self, more_content, no_docstring=False): + def add_content(self, more_content): # Check where to include the samples samples_slot = self.options.samples_slot or self.default_samples_slot def add_docstring(): - super(TypeDocumenter, self).add_content( - more_content, no_docstring) + super(TypeDocumenter, self).add_content(more_content) def add_samples(): protocols = get_protocols( @@ -284,14 +283,13 @@ class AttributeDocumenter(autodoc.AttributeDocumenter): self.datatype = self.object.datatype return success - def add_content(self, more_content, no_docstring=False): + def add_content(self, more_content): self.add_line( u':type: %s' % datatypename(self.datatype), '' ) self.add_line(u'', '') - super(AttributeDocumenter, self).add_content( - more_content, no_docstring) + super(AttributeDocumenter, self).add_content(more_content) def add_directive_header(self, sig): super(AttributeDocumenter, self).add_directive_header(sig) @@ -528,8 +526,8 @@ class FunctionDocumenter(autodoc.MethodDocumenter): self.wsme_fd, docstrings, protocols ) - def add_content(self, more_content, no_docstring=False): - super(FunctionDocumenter, self).add_content(more_content, no_docstring) + def add_content(self, more_content): + super(FunctionDocumenter, self).add_content(more_content) def format_name(self): return self.wsme_fd.name