]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.7] bpo-37814: Document the empty tuple type annotation syntax (GH-15208) (GH-15262)
authorJosh Holland <anowlcalledjosh@gmail.com>
Tue, 13 Aug 2019 19:26:12 +0000 (20:26 +0100)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 13 Aug 2019 19:26:12 +0000 (12:26 -0700)
commit37fd9f73e2fa439554977cfba427bf94c1fedb6b
tree42e1de3b3297c7ef3a1bc95012437cabed9d1c5d
parent9286677538f3cd15aaad7628f4a95ab6aa97536b
[3.7] bpo-37814: Document the empty tuple type annotation syntax (GH-15208) (GH-15262)

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
(cherry picked from commit 8a784af750fa82c8355903309e5089eb2b60c16b)

Co-authored-by: Josh Holland <anowlcalledjosh@gmail.com>
https://bugs.python.org/issue37814

Automerge-Triggered-By: @gvanrossum
Doc/library/typing.rst