summaryrefslogtreecommitdiff
path: root/tests/root/objects.txt
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-01-17 13:51:41 +0100
committerGeorg Brandl <georg@python.org>2010-01-17 13:51:41 +0100
commitd7acefae40bbe3de5c8414ef56d8dc47dd5a5567 (patch)
tree2a533564995ef0e0d8519bcad6b08b894de1a99d /tests/root/objects.txt
parent2b0d891fc32605f0cc92969ec94b1dea5bd1d522 (diff)
downloadsphinx-d7acefae40bbe3de5c8414ef56d8dc47dd5a5567.tar.gz
Fix :type:-class field processing and add doc field markup to test suite.
Diffstat (limited to 'tests/root/objects.txt')
-rw-r--r--tests/root/objects.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/root/objects.txt b/tests/root/objects.txt
index fd33a6cc..4e44a097 100644
--- a/tests/root/objects.txt
+++ b/tests/root/objects.txt
@@ -39,6 +39,23 @@ Testing object descriptions
.. function:: func_without_module2() -> annotation
+.. class:: TimeInt
+
+.. class:: Time(hour, minute, isdst)
+
+ :param hour: The year.
+ :type hour: TimeInt
+ :param TimeInt minute: The minute.
+ :param isdst: whether it's DST
+ :type isdst: * some complex
+ * expression
+ :returns: a new :class:`Time` instance
+ :rtype: :class:`Time`
+ :raises ValueError: if the values are out of range
+ :ivar int hour: like *hour*
+ :ivar minute: like *minute*
+ :vartype minute: int
+
C items
=======