diff options
author | Batuhan Taskaya <batuhanosmantaskaya@gmail.com> | 2020-05-18 21:23:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-18 19:23:48 +0100 |
commit | 2135e10dc717c00d10d899d232bebfc59bb25032 (patch) | |
tree | 46adae3fe2b52187e2ae3656fb9a50be0e582c20 /Lib/test/test_future.py | |
parent | e6578a226d8a8a13d1062d154fad0fef28ee2416 (diff) | |
download | cpython-git-2135e10dc717c00d10d899d232bebfc59bb25032.tar.gz |
bpo-40663: Correctly handle annotations with subscripts in ast_unparse.c (GH-20156)
Diffstat (limited to 'Lib/test/test_future.py')
-rw-r--r-- | Lib/test/test_future.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_future.py b/Lib/test/test_future.py index 56b7ac6865..0f40357b3a 100644 --- a/Lib/test/test_future.py +++ b/Lib/test/test_future.py @@ -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]") |