summaryrefslogtreecommitdiff
path: root/sphinx/util/docfields.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-07-27 19:08:09 +0200
committerGeorg Brandl <georg@python.org>2010-07-27 19:08:09 +0200
commite081cf4d3b0f9fb55aff0bacc6e06c28add77a74 (patch)
tree655654e1c3d2d078553ab9bc38a813629fda6a91 /sphinx/util/docfields.py
parent3b64ec2a2e6468cbf1b6b3cc56035f7fdb0249cb (diff)
downloadsphinx-git-e081cf4d3b0f9fb55aff0bacc6e06c28add77a74.tar.gz
Add a missing assignment.
Diffstat (limited to 'sphinx/util/docfields.py')
-rw-r--r--sphinx/util/docfields.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sphinx/util/docfields.py b/sphinx/util/docfields.py
index 9eafde0ac..c8e58f48a 100644
--- a/sphinx/util/docfields.py
+++ b/sphinx/util/docfields.py
@@ -142,6 +142,7 @@ class TypedField(GroupedField):
par += self.make_xref(self.rolename, domain, fieldarg, nodes.strong)
if fieldarg in types:
par += nodes.Text(' (')
+ fieldtype = types[fieldarg]
if len(fieldtype) == 1 and isinstance(fieldtype[0], nodes.Text):
typename = u''.join(n.astext() for n in types[fieldarg])
par += self.make_xref(self.typerolename, domain, typename)