mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Use PEP 585 syntax wherever possible (#6717)
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import datetime
|
||||
import sys
|
||||
from email.charset import Charset
|
||||
from typing import Optional, Tuple, Union, overload
|
||||
from typing import Optional, Union, overload
|
||||
|
||||
_ParamType = Union[str, Tuple[Optional[str], Optional[str], str]]
|
||||
_PDTZ = Tuple[int, int, int, int, int, int, int, int, int, Optional[int]]
|
||||
_ParamType = Union[str, tuple[Optional[str], Optional[str], str]]
|
||||
_PDTZ = tuple[int, int, int, int, int, int, int, int, int, Optional[int]]
|
||||
|
||||
def quote(str: str) -> str: ...
|
||||
def unquote(str: str) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user