mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
update Subscript.slice type for python3.9 (#3950)
This commit is contained in:
@@ -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