Skip to content

Commit bc90043

Browse files
authored
update Subscript.slice type for python3.9 (#3950)
1 parent f7d240f commit bc90043

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

stdlib/3/_ast.pyi

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,14 @@ class Attribute(expr):
293293
attr: _identifier
294294
ctx: expr_context
295295

296+
if sys.version_info >= (3, 9):
297+
_SliceT = expr
298+
else:
299+
_SliceT = _slice
300+
296301
class Subscript(expr):
297302
value: expr
298-
slice: _slice
303+
slice: _SliceT
299304
ctx: expr_context
300305

301306
class Starred(expr):

0 commit comments

Comments
 (0)