From 3cefe69248e4d8a68e84d08703f7a2cd11ce2118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B7=AE=E7=82=B9=E6=B2=A1=E5=A4=B4=E7=9A=84=E6=9D=B0?= =?UTF-8?q?=E5=85=8B?= Date: Sun, 5 Jan 2025 18:47:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8B=98=E8=AF=AF=20=E9=94=99=E5=88=AB?= =?UTF-8?q?=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/guidelines/advanced/type_hint.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guidelines/advanced/type_hint.md b/docs/guidelines/advanced/type_hint.md index 0288346..722f8a5 100644 --- a/docs/guidelines/advanced/type_hint.md +++ b/docs/guidelines/advanced/type_hint.md @@ -153,7 +153,7 @@ def count_words(records: List[str]) -> Dict[str, int]: > 在 Python 3.9 已经对一些基本数据 接口做了泛型适配,这和现有 typing 下的泛型类型重复, > 所以会弃用这些泛型容器类型,具体请参考体包含哪些请参考 [PEP 585](https://www.python.org/dev/peps/pep-0585/) 。 > 如果需要提前使用新特性,在 Python 3.7 开始,可以导入 `from __future__ import annotations` 来使用新的泛型类型。 -> 官方会在 Python 3.9 发布五年后的收个 Python 发行版,即2025年10月5日之后的收个发行版会移除 +> 官方会在 Python 3.9 发布五年后的收个 Python 发行版,即2025年10月5日之后的首个发行版会移除 > [PEP 585](https://www.python.org/dev/peps/pep-0585/) 中弃用的泛型容器类型。 ### 2.3 特殊类型