From 7c65046e88264606d3c8f943eef2d91acca1a934 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Langa?= Date: Tue, 19 May 2020 00:32:25 +0200 Subject: [PATCH] Make `from __future__ import annotations` the default in Python 3.10 (#1371) --- pep-0563.rst | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pep-0563.rst b/pep-0563.rst index 6d2d275fd..f14ce6224 100644 --- a/pep-0563.rst +++ b/pep-0563.rst @@ -280,13 +280,7 @@ Deprecation policy Starting with Python 3.7, a ``__future__`` import is required to use the described functionality. No warnings are raised. -In Python 3.8 a ``PendingDeprecationWarning`` is raised by the -compiler in the presence of type annotations in modules without the -``__future__`` import. - -Starting with Python 3.9 the warning becomes a ``DeprecationWarning``. - -In Python 4.0 this will become the default behavior. Use of annotations +In Python 3.10 this will become the default behavior. Use of annotations incompatible with this PEP is no longer supported.