Big diff: Use new "|" union syntax (#5872)

This commit is contained in:
Akuli
2021-08-08 12:05:21 +03:00
committed by GitHub
parent b9adb7a874
commit ee487304d7
578 changed files with 8080 additions and 8966 deletions

View File

@@ -1,15 +1,15 @@
import sys
from typing import Any, Dict, List, Optional, Union
from typing import Any, Dict, List
MAGIC: int
class error(Exception):
msg: str
pattern: Optional[Union[str, bytes]]
pos: Optional[int]
pattern: str | bytes | None
pos: int | None
lineno: int
colno: int
def __init__(self, msg: str, pattern: Optional[Union[str, bytes]] = ..., pos: Optional[int] = ...) -> None: ...
def __init__(self, msg: str, pattern: str | bytes | None = ..., pos: int | None = ...) -> None: ...
class _NamedIntConstant(int):
name: Any