mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
Fix ast.Constant availability (#3142)
This commit is contained in:
committed by
Sebastian Rittau
parent
322be1b9e7
commit
8794e40d41
@@ -269,7 +269,7 @@ class Bytes(expr): # Deprecated in 3.8; use Constant
|
||||
class NameConstant(expr):
|
||||
value: Any
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
if sys.version_info >= (3, 6):
|
||||
class Constant(expr):
|
||||
value: Any # None, str, bytes, bool, int, float, complex, Ellipsis
|
||||
kind: Optional[str]
|
||||
@@ -277,6 +277,7 @@ if sys.version_info >= (3, 8):
|
||||
s: Any
|
||||
n: complex
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
class NamedExpr(expr):
|
||||
target: expr
|
||||
value: expr
|
||||
|
||||
Reference in New Issue
Block a user