mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-24 20:12:08 +08:00
Use PEP 604 syntax wherever possible (#7493)
This commit is contained in:
@@ -10,7 +10,7 @@ from typing import IO, Any, AnyStr, Callable, Iterable, Mapping, MutableMapping,
|
||||
_Unmarshaller = Any
|
||||
_timeTuple = tuple[int, int, int, int, int, int, int, int, int]
|
||||
# Represents types that can be compared against a DateTime object
|
||||
_dateTimeComp = Union[unicode, DateTime, datetime]
|
||||
_dateTimeComp = unicode | DateTime | datetime
|
||||
# A "host description" used by Transport factories
|
||||
_hostDesc = Union[str, tuple[str, Mapping[Any, Any]]]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user