Message275718
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. |
|
Date |
User |
Action |
Args |
2016-09-11 00:27:09 | michael0x2a | set | recipients:
+ michael0x2a, gvanrossum, docs@python |
2016-09-11 00:27:08 | michael0x2a | set | messageid: <1473553628.91.0.952557141974.issue28073@psf.upfronthosting.co.za> |
2016-09-11 00:27:08 | michael0x2a | link | issue28073 messages |
2016-09-11 00:27:07 | michael0x2a | create | |
|