From e3979da4998bec255db8fc14b90b811f66d20d05 Mon Sep 17 00:00:00 2001 From: Apostol Fet Date: Sat, 12 Apr 2025 16:40:14 +0300 Subject: [PATCH 1/2] docs: added information about deprecated pep 563 --- docs/source/runtime_troubles.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/runtime_troubles.rst b/docs/source/runtime_troubles.rst index b61f0048dd0a7..d5d00207bcb56 100644 --- a/docs/source/runtime_troubles.rst +++ b/docs/source/runtime_troubles.rst @@ -8,10 +8,10 @@ version of Python considers legal code. This section describes these scenarios and explains how to get your code running again. Generally speaking, we have three tools at our disposal: -* Use of ``from __future__ import annotations`` (:pep:`563`) - (this behaviour may eventually be made the default in a future Python version) * Use of string literal types or type comments * Use of ``typing.TYPE_CHECKING`` +* Use of ``from __future__ import annotations`` (:pep:`563`) + (This directive has been declared deprecated since Python 3.14, and is expected to be removed in a future version of Python) We provide a description of these before moving onto discussion of specific problems you may encounter. From 65b25e7e4d58d4d0b1bae7942299fc8e16b26c05 Mon Sep 17 00:00:00 2001 From: Ageev Maxim Date: Sat, 12 Apr 2025 18:51:40 +0300 Subject: [PATCH 2/2] Update docs/source/runtime_troubles.rst Co-authored-by: sobolevn --- docs/source/runtime_troubles.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/source/runtime_troubles.rst b/docs/source/runtime_troubles.rst index d5d00207bcb56..edc375e26485b 100644 --- a/docs/source/runtime_troubles.rst +++ b/docs/source/runtime_troubles.rst @@ -11,7 +11,6 @@ three tools at our disposal: * Use of string literal types or type comments * Use of ``typing.TYPE_CHECKING`` * Use of ``from __future__ import annotations`` (:pep:`563`) - (This directive has been declared deprecated since Python 3.14, and is expected to be removed in a future version of Python) We provide a description of these before moving onto discussion of specific problems you may encounter.