mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-26 03:27:14 +08:00
Simplify and correct many numeric unions (#7906)
Unblocks PyCQA/flake8-pyi#222
This commit is contained in:
@@ -237,7 +237,7 @@ class Repr(expr):
|
||||
value: expr
|
||||
|
||||
class Num(expr):
|
||||
n: int | float | complex
|
||||
n: complex
|
||||
|
||||
class Str(expr):
|
||||
s: str | bytes
|
||||
|
||||
@@ -252,7 +252,7 @@ class Call(expr):
|
||||
keywords: list[keyword]
|
||||
|
||||
class Num(expr):
|
||||
n: float | int | complex
|
||||
n: complex
|
||||
|
||||
class Str(expr):
|
||||
s: str
|
||||
|
||||
Reference in New Issue
Block a user