mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
merge
This commit is contained in:
commit
d71af03665
@ -841,7 +841,10 @@ class ClassDocumenter(ModuleLevelDocumenter):
|
|||||||
# if the class is documented under another name, document it
|
# if the class is documented under another name, document it
|
||||||
# as data/attribute
|
# as data/attribute
|
||||||
if ret:
|
if ret:
|
||||||
|
if hasattr(self.object, '__name__'):
|
||||||
self.doc_as_attr = (self.objpath[-1] != self.object.__name__)
|
self.doc_as_attr = (self.objpath[-1] != self.object.__name__)
|
||||||
|
else:
|
||||||
|
self.doc_as_attr = True
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
def format_args(self):
|
def format_args(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user