mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #9404: autodoc: autoclass raises TypeError for dict-like object
The autoclass directive raises TypeError when dict-like object (not a class) is given as a subject.
This commit is contained in:
parent
ac2b9a4f66
commit
fe037233ca
2
CHANGES
2
CHANGES
@ -90,6 +90,8 @@ Bugs fixed
|
||||
* #9364: autodoc: single element tuple on the default argument value is wrongly
|
||||
rendered
|
||||
* #9362: autodoc: AttributeError is raised on processing a subclass of Tuple[()]
|
||||
* #9404: autodoc: TypeError is raised on processing dict-like object (not a
|
||||
class) via autoclass directive
|
||||
* #9317: html: Pushing left key causes visiting the next page at the first page
|
||||
* #9381: html: URL for html_favicon and html_log does not work
|
||||
* #9270: html theme : pyramid theme generates incorrect logo links
|
||||
|
@ -127,7 +127,7 @@ def restify(cls: Optional[Type]) -> str:
|
||||
return _restify_py37(cls)
|
||||
else:
|
||||
return _restify_py36(cls)
|
||||
except AttributeError:
|
||||
except (AttributeError, TypeError):
|
||||
return repr(cls)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user