File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ class JoinedStr(expr):
329
329
330
330
if sys .version_info < (3 , 8 ):
331
331
class Num (expr ): # Deprecated in 3.8; use Constant
332
- n : complex
332
+ n : int | float | complex
333
333
334
334
class Str (expr ): # Deprecated in 3.8; use Constant
335
335
s : str
@@ -349,7 +349,7 @@ class Constant(expr):
349
349
kind : str | None
350
350
# Aliases for value, for backwards compatibility
351
351
s : Any
352
- n : complex
352
+ n : int | float | complex
353
353
354
354
if sys .version_info >= (3 , 8 ):
355
355
class NamedExpr (expr ):
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ if sys.version_info >= (3, 8):
10
10
def __init__ (cls , * args : object ) -> None : ...
11
11
12
12
class Num (Constant , metaclass = _ABC ):
13
- value : complex
13
+ value : int | float | complex
14
14
15
15
class Str (Constant , metaclass = _ABC ):
16
16
value : str
You can’t perform that action at this time.
0 commit comments