Author khyox
Recipients docs@python, khyox
Date 2017-06-10.00:38:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1497055090.79.0.980256634301.issue30619@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2017-06-10 00:38:11khyoxsetrecipients: + khyox, docs@python
2017-06-10 00:38:10khyoxsetmessageid: <1497055090.79.0.980256634301.issue30619@psf.upfronthosting.co.za>
2017-06-10 00:38:10khyoxlinkissue30619 messages
2017-06-10 00:38:09khyoxcreate