Fix #8616: autodoc: AttributeError when non-class is passed to autoclass

Since 3.4.0, AttributeError is raised when non-class object is passed to
the autoclass directive.  It has built successfully before 3.4.0
release.  So this handles the exception on generating "alias" text.
This commit is contained in:
Takeshi KOMIYA
2020-12-30 23:08:29 +09:00
parent 3f560cd672
commit 0f8debe558
2 changed files with 7 additions and 1 deletions

View File

@@ -17,6 +17,8 @@ Bugs fixed
----------
* #8164: autodoc: Classes that inherit mocked class are not documented
* #8616: autodoc: AttributeError is raised on non-class object is passed to
autoclass directive
Testing
--------