From 02a9d6de10bd45ccadc233699472804e0a39df1e Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 6 Jun 2016 13:43:37 -0700 Subject: [PATCH] The type of an empty tuple is spelled Tuple[()]. Fixes upstream #231. --- pep-0484.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/pep-0484.txt b/pep-0484.txt index dfa83ff99..a71751a0a 100644 --- a/pep-0484.txt +++ b/pep-0484.txt @@ -1507,6 +1507,7 @@ Fundamental building blocks: * Tuple, used by listing the element types, for example ``Tuple[int, int, str]``. + The empty tuple can be typed as ``Tuple[()]``. Arbitrary-length homogeneous tuples can be expressed using one type and ellipsis, for example ``Tuple[int, ...]``. (The ``...`` here are part of the syntax, a literal ellipsis.)