Merge pull request #5468 from tk0miya/5426_TypeError_for_class_attributes

Fix py domain: TypeError has been raised for class attribute (ref: #5426)
This commit is contained in:
Takeshi KOMIYA 2018-09-22 17:03:58 +09:00 committed by GitHub
commit 8d1b3646b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -34,6 +34,7 @@ Bugs fixed
* #5463: mathbase: math_role and MathDirective was disappeared in 1.8.0 * #5463: mathbase: math_role and MathDirective was disappeared in 1.8.0
* #5454: latex: Index has disappeared from PDF for Japanese documents * #5454: latex: Index has disappeared from PDF for Japanese documents
* #5432: py domain: ``:type:`` field can't process ``:term:`` references * #5432: py domain: ``:type:`` field can't process ``:term:`` references
* #5426: py domain: TypeError has been raised for class attribute
Testing Testing
-------- --------

View File

@ -319,7 +319,8 @@ class DocFieldTransformer(object):
fieldbody.children[0].extend(xrefs) fieldbody.children[0].extend(xrefs)
else: else:
fieldbody.clear() fieldbody.clear()
fieldbody.extend(xrefs) fieldbody += nodes.paragraph()
fieldbody[0].extend(xrefs)
continue continue