summaryrefslogtreecommitdiffstats
path: root/Lib/__future__.py
diff options
context:
space:
mode:
authorKotlinIsland <65446343+KotlinIsland@users.noreply.github.com>2022-07-05 08:46:39 (GMT)
committerGitHub <noreply@github.com>2022-07-05 08:46:39 (GMT)
commit4791a8a8357e67431cb686d9559aa419074b8e33 (patch)
tree3836a2f864c2ac0e98af51053e678750d8b86025 /Lib/__future__.py
parent7bd67d1d88383bb6d156ac9ca816e56085ca5ec8 (diff)
downloadcpython-4791a8a8357e67431cb686d9559aa419074b8e33.zip
cpython-4791a8a8357e67431cb686d9559aa419074b8e33.tar.gz
cpython-4791a8a8357e67431cb686d9559aa419074b8e33.tar.bz2
gh-93626: Set the release for `__future__.annotations` to `None` (GH-93628)
Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
Diffstat (limited to 'Lib/__future__.py')
-rw-r--r--Lib/__future__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/__future__.py b/Lib/__future__.py
index 97dc90c..39720a5 100644
--- a/Lib/__future__.py
+++ b/Lib/__future__.py
@@ -33,7 +33,7 @@ in releases at or after that, modules no longer need
to use the feature in question, but may continue to use such imports.
MandatoryRelease may also be None, meaning that a planned feature got
-dropped.
+dropped or that the release version is undetermined.
Instances of class _Feature have two corresponding methods,
.getOptionalRelease() and .getMandatoryRelease().
@@ -96,7 +96,7 @@ class _Feature:
"""Return release in which this feature will become mandatory.
This is a 5-tuple, of the same form as sys.version_info, or, if
- the feature was dropped, is None.
+ the feature was dropped, or the release date is undetermined, is None.
"""
return self.mandatory
@@ -143,5 +143,5 @@ generator_stop = _Feature((3, 5, 0, "beta", 1),
CO_FUTURE_GENERATOR_STOP)
annotations = _Feature((3, 7, 0, "beta", 1),
- (3, 11, 0, "alpha", 0),
+ None,
CO_FUTURE_ANNOTATIONS)