]> granicus.if.org Git - python/commit
bpo-37814: Document the empty tuple type annotation syntax (GH-15208)
authorJosh Holland <anowlcalledjosh@gmail.com>
Tue, 13 Aug 2019 19:05:09 +0000 (20:05 +0100)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 13 Aug 2019 19:05:09 +0000 (12:05 -0700)
commit8a784af750fa82c8355903309e5089eb2b60c16b
treedbce7a5303ae01fdf558bd1a8523df26bc17da5a
parent1ac2a83f30312976502fda042db5ce18d10ceec2
bpo-37814: Document the empty tuple type annotation syntax (GH-15208)

https://bugs.python.org/issue37814:

> The empty tuple syntax in type annotations, `Tuple[()]`, is not obvious from the examples given in the documentation (I naively expected `Tuple[]` to work); it has been documented in PEP 484 and in mypy, but not in the documentation for the typing module.

https://bugs.python.org/issue37814
Doc/library/typing.rst