From bc90043e546f3d242e0f2a276194d77ba9811781 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Tue, 28 Apr 2020 17:32:08 -0700 Subject: [PATCH] update Subscript.slice type for python3.9 (#3950) --- stdlib/3/_ast.pyi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/stdlib/3/_ast.pyi b/stdlib/3/_ast.pyi index f13c550ba..789c0a3bf 100644 --- a/stdlib/3/_ast.pyi +++ b/stdlib/3/_ast.pyi @@ -293,9 +293,14 @@ class Attribute(expr): attr: _identifier ctx: expr_context +if sys.version_info >= (3, 9): + _SliceT = expr +else: + _SliceT = _slice + class Subscript(expr): value: expr - slice: _slice + slice: _SliceT ctx: expr_context class Starred(expr):