Style: prefer type[Foo | Bar] over type[Foo] | type[Bar] (#10039)

This commit is contained in:
Alex Waygood
2023-04-13 10:34:53 +01:00
committed by GitHub
parent 084f555793
commit 2279886964
5 changed files with 45 additions and 43 deletions

View File

@@ -129,8 +129,8 @@ def Binary(data: ReadableBuffer) -> memoryview: ...
Decimal = decimal.Decimal
NUMBER: type[int] | type[float] | type[complex]
DATETIME: type[date] | type[time] | type[datetime]
NUMBER: type[int | float | complex]
DATETIME: type[date | time | datetime]
STRING = str
BINARY = memoryview
ROWID = int