mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-40663: Correctly handle annotations with subscripts in ast_unparse.c (GH-20156)
This commit is contained in:
parent
e6578a226d
commit
2135e10dc7
3 changed files with 17 additions and 1 deletions
|
@ -275,6 +275,9 @@ class AnnotationsFutureTestCase(unittest.TestCase):
|
|||
eq("dict[str, int]")
|
||||
eq("set[str,]")
|
||||
eq("tuple[str, ...]")
|
||||
eq("tuple[(str, *types)]")
|
||||
eq("tuple[str, int, (str, int)]")
|
||||
eq("tuple[(*int, str, str, (str, int))]")
|
||||
eq("tuple[str, int, float, dict[str, int]]")
|
||||
eq("slice[0]")
|
||||
eq("slice[0:1]")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue