mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
bpo-30619: Clarify typing.Union documentation (GH-2326)
When a class and its subclass are present, the latter is skipped.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user