Python domain can link multiple types in a type field

This commit is contained in:
Ashley Whetter
2016-09-18 06:38:27 +01:00
parent d8876ce4b2
commit ea86d23845
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -371,6 +371,13 @@ using the following syntax::
:type point: tuple(float, float)
:type point: tuple[float, float]
Multiple types in a type field will be linked automatically if separated by
the word "or"::
:type an_arg: int or None
:vartype a_var: str or int
:rtype: float or str
.. _python-roles:
Cross-referencing Python objects