python/python-docs-zh-cn

[Typo]: future语句中代码块中annotations被翻译

Closed this issue · 1 comments

Python Version

3.9+

Docs Page

https://docs.python.org/zh-cn/3.13/reference/simple_stmts.html#future

Original Translation

唯一需要使用 future 语句的特性是 标注 (参见 PEP 563)。

Original Docs Paragraph

The only feature that requires using the future statement is annotations (see PEP 563).

Suggested Fix

根据上下文,此处 annotations 应特指 from __future__ import annotations 语句中的 annotations
而且原文为代码块,应该不翻译保留原文 annotations
此问题在所有维护版本(3.9+)的文档中都存在。

fixed