[Python-checkins] peps: The type of an empty tuple is spelled Tuple[()]. Fixes upstream #231.
guido.van.rossum
python-checkins at python.org
Mon Jun 6 16:43:51 EDT 2016
https://hg.python.org/peps/rev/7e629341aee5
changeset: 6351:7e629341aee5
user: Guido van Rossum <guido at python.org>
date: Mon Jun 06 13:43:37 2016 -0700
summary:
The type of an empty tuple is spelled Tuple[()]. Fixes upstream #231.
files:
pep-0484.txt | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/pep-0484.txt b/pep-0484.txt
--- a/pep-0484.txt
+++ b/pep-0484.txt
@@ -1507,6 +1507,7 @@
* 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.)
--
Repository URL: https://hg.python.org/peps
More information about the Python-checkins
mailing list