This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author michael0x2a
Recipients docs@python, gvanrossum, michael0x2a
Date 2016-09-11.00:27:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473553628.91.0.952557141974.issue28073@psf.upfronthosting.co.za>
In-reply-to
Content
For some reason, the section of the typing docs about Optional stated that Optional[T] was equivalent to Union[T, type(None)]. While this is true, it's somewhat inconsistent and potentially confusing since everywhere else in the docs, we just use None.

This patch modifies that line to use Union[T, type(None)] instead, and moves the line explaining that None is special-cased to mean type(None) to the first usage of None as a type within the docs.
History
Date User Action Args
2016-09-11 00:27:09michael0x2asetrecipients: + michael0x2a, gvanrossum, docs@python
2016-09-11 00:27:08michael0x2asetmessageid: <1473553628.91.0.952557141974.issue28073@psf.upfronthosting.co.za>
2016-09-11 00:27:08michael0x2alinkissue28073 messages
2016-09-11 00:27:07michael0x2acreate