how to

ast-tuple

Jan 15, 2024
langspython
1 Minutes
24 Words

usage:

1
def f() -> ast.Tuple(int, int):

For python like 3.7, consider from typing import Tuple. For higher versions, of course you can use tuple[] very well.

Article title:ast-tuple
Article author:Julyfun
Release time:Jan 15, 2024
Copyright 2025
Sitemap