mirror of
https://github.com/python/cpython.git
synced 2025-09-29 19:56:59 +00:00
[3.6] bpo-30619: Clarify typing.Union documentation (GH-2326) (GH-2337)
When a class and its subclass are present, the latter is skipped.
(cherry picked from commit 6580c19bbb
)
This commit is contained in:
parent
e9b34c1100
commit
8baf78b98f
1 changed files with 1 additions and 1 deletions
|
@ -939,7 +939,7 @@ The module defines the following classes, functions and decorators:
|
|||
|
||||
Union[int, str] == Union[str, int]
|
||||
|
||||
* When a class and its subclass are present, the former is skipped, e.g.::
|
||||
* When a class and its subclass are present, the latter is skipped, e.g.::
|
||||
|
||||
Union[int, object] == object
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue