Simplify and correct many numeric unions (#7906)

Unblocks PyCQA/flake8-pyi#222
This commit is contained in:
Alex Waygood
2022-05-21 15:25:00 +01:00
committed by GitHub
parent 7576805aee
commit 76a4bd796b
17 changed files with 30 additions and 26 deletions

View File

@@ -237,7 +237,7 @@ class Repr(expr):
value: expr
class Num(expr):
n: int | float | complex
n: complex
class Str(expr):
s: str | bytes

View File

@@ -252,7 +252,7 @@ class Call(expr):
keywords: list[keyword]
class Num(expr):
n: float | int | complex
n: complex
class Str(expr):
s: str