Message295593
In https://docs.python.org/3.6/library/typing.html#typing.Union, when giving details for Union and in the case when a class and its subclass are present, the doc states:
When a class and its subclass are present, the former is skipped, e.g.:
Union[int, object] == object
But it is the example (and not the text) which is consistent with PEP 483:
Corollary: Union[..., object, ...] returns object
So, the proposed correction would be substitute 'former' for 'latter':
When a class and its subclass are present, the latter is skipped, e.g.:
Union[int, object] == object |
|
Date |
User |
Action |
Args |
2017-06-10 00:38:11 | khyox | set | recipients:
+ khyox, docs@python |
2017-06-10 00:38:10 | khyox | set | messageid: <1497055090.79.0.980256634301.issue30619@psf.upfronthosting.co.za> |
2017-06-10 00:38:10 | khyox | link | issue30619 messages |
2017-06-10 00:38:09 | khyox | create | |
|