Skip to content

Commit 97bf90b

Browse files
committed
update docs - union syntax
1 parent 866ab5b commit 97bf90b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/src/supported_types.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,3 +162,7 @@ Example usage:
162162
163163
>>> python print_address --number=1 --street="Royal Avenue" --postcode="XYZ 123"
164164
1 Royal Avenue, XYZ 123
165+
166+
167+
.. note::
168+
The union syntax in Python 3.10 and above also works, e.g. ``str | None``.

0 commit comments

Comments
 (0)