Skip to content

Commit d9ce974

Browse files
Apply suggestions
Co-authored-by: Jelle Zijlstra <[email protected]>
1 parent f54a368 commit d9ce974

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/typing.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1374,7 +1374,7 @@ These can be used as types in annotations. They all support subscription using
13741374

13751375
@dataclass
13761376
class ctype:
1377-
kind: str
1377+
kind: str
13781378

13791379
Annotated[int, ValueRange(3, 10), ctype("char")]
13801380

@@ -1390,13 +1390,13 @@ These can be used as types in annotations. They all support subscription using
13901390
starts with the innermost annotation::
13911391

13921392
assert Annotated[Annotated[int, ValueRange(3, 10)], ctype("char")] == Annotated[
1393-
int, ValueRange(3, 10), ctype("char")
1393+
int, ValueRange(3, 10), ctype("char")
13941394
]
13951395

13961396
Duplicated metadata elements are not removed::
13971397

13981398
assert Annotated[int, ValueRange(3, 10)] != Annotated[
1399-
int, ValueRange(3, 10), ValueRange(3, 10)
1399+
int, ValueRange(3, 10), ValueRange(3, 10)
14001400
]
14011401

14021402
``Annotated`` can be used with nested and generic aliases:

0 commit comments

Comments
 (0)