Merge pull request #9190 from tk0miya/9189_ValueError_for_property

Fix #9189: autodoc: crashed by ValueError on generating signature of property
This commit is contained in:
Takeshi KOMIYA 2021-05-10 23:30:13 +09:00 committed by GitHub
commit 7c16981f67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -16,6 +16,9 @@ Features added
Bugs fixed
----------
* #9189: autodoc: crashed when ValueError is raised on generating signature
from a property of the class
Testing
--------

View File

@ -2570,7 +2570,7 @@ class PropertyDocumenter(DocstringStripSignatureMixin, ClassLevelDocumenter): #
self.fullname, exc)
return None
except ValueError:
raise
return None
class NewTypeAttributeDocumenter(AttributeDocumenter):