Skip to content

Commit 9abbabb

Browse files
Benedikt's suggestions
1 parent f13b485 commit 9abbabb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/typing.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,7 @@ These can be used as types in annotations. They all support subscription using
13791379
a1 = Annotated[int, ValueRange(3, 10), ctype("char")]
13801380
a2 = Annotated[int, ctype("char"), ValueRange(3, 10)]
13811381

1382-
assert a1 != a2 # Order matters
1382+
assert a1 != a2 # Order matters
13831383

13841384
It is up to the tool consuming the annotations to decide whether the
13851385
client is allowed to add multiple metadata elements to one annotation and how to
@@ -1447,6 +1447,7 @@ These can be used as types in annotations. They all support subscription using
14471447

14481448
.. doctest::
14491449

1450+
>>> from typing import Annotated, get_origin
14501451
>>> Password = Annotated[str, "secret"]
14511452
>>> Password.__origin__
14521453
<class 'str'>

0 commit comments

Comments
 (0)