From 2d0c03b4de47b5092efb3f6451e39a9c38645b44 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Sun, 14 Jan 2024 12:16:51 +0100 Subject: [PATCH] Nit: typing.Text was only available since 3.5 --- docs/source/modernizing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/modernizing.rst b/docs/source/modernizing.rst index 0c6309a3d..267458591 100644 --- a/docs/source/modernizing.rst +++ b/docs/source/modernizing.rst @@ -80,7 +80,7 @@ it's necessary to either use :python:`from __future__ import annotations` ``typing.Text`` =============== -*Alternative available since:* Python 3.0 +*Alternative available since:* Python 3.5 :class:`typing.Text` was a type alias intended for Python 2 compatibility. It is equivalent to :class:`str` and should be replaced with it.