We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
链接:https://peps.python.org/pep-0585/
从 python3.9开始,python类型注解支持使用内置的类型标识参数类型,而不必从 typing 导入。
typing
比如在python3.9之前
from typing import List def foo(a:List[int]): pass
python3.9之后可以这样使用
def foo(a:list[int]): pass
具体类型可查看 PEP 585。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
链接:https://peps.python.org/pep-0585/
从 python3.9开始,python类型注解支持使用内置的类型标识参数类型,而不必从
typing
导入。比如在python3.9之前
python3.9之后可以这样使用
具体类型可查看 PEP 585。
The text was updated successfully, but these errors were encountered: