mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Big diff: Use new "|" union syntax (#5872)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user