Merged in JonnyJD/sphinx-fix-none-property (pull request #179)

autodoc: fix annotation None for properties
This commit is contained in:
Georg Brandl
2013-10-10 07:17:31 +02:00

View File

@@ -1252,7 +1252,8 @@ class AttributeDocumenter(ClassLevelDocumenter):
def add_directive_header(self, sig):
ClassLevelDocumenter.add_directive_header(self, sig)
if not self._datadescriptor and not self.options.annotation:
if not self.options.annotation:
if not self._datadescriptor:
try:
objrepr = safe_repr(self.object)
except ValueError: