mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Use PEP 604 syntax wherever possible (#7493)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import sys
|
||||
from typing import Any, AnyStr, Callable, Generic, Mapping, NamedTuple, Sequence, Union, overload
|
||||
from typing import Any, AnyStr, Callable, Generic, Mapping, NamedTuple, Sequence, overload
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
from types import GenericAlias
|
||||
@@ -28,7 +28,7 @@ __all__ = [
|
||||
"SplitResultBytes",
|
||||
]
|
||||
|
||||
_Str = Union[bytes, str]
|
||||
_Str = bytes | str
|
||||
|
||||
uses_relative: list[str]
|
||||
uses_netloc: list[str]
|
||||
|
||||
Reference in New Issue
Block a user