10000 bpo-30619: Clarify typing.Union documentation (GH-2326) · python/cpython@6580c19 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6580c19

Browse files
khyoxMariatta
authored andcommitted
bpo-30619: Clarify typing.Union documentation (GH-2326)
When a class and its subclass are present, the latter is skipped.
1 parent a3d91b4 commit 6580c19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/typing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ The module defines the following classes, functions and decorators:
939939

940940
Union[int, str] == Union[str, int]
941941

942-
* When a class and its subclass are present, the former is skipped, e.g.::
942+
* When a class and its subclass are present, the latter is skipped, e.g.::
943943

944944
Union[int, object] == object
945945

0 commit comments

Comments
 (0)
0