mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-20 20:57:03 +08:00
update Subscript.slice type for python3.9 (#3950)
This commit is contained in:
1 parent
f7d240f06e
commit
bc90043e54
1 file changed
+6
-1
+6
-1
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user