update Subscript.slice type for python3.9 (#3950)

This commit is contained in:
Anthony Sottile
2020-04-28 17:32:08 -07:00
committed by GitHub
parent f7d240f06e
commit bc90043e54

View File

@@ -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):