mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Use PEP 604 syntax wherever possible, part II (#7514)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
@@ -2,9 +2,9 @@ import threading
|
||||
from _typeshed import StrPath, SupportsWrite
|
||||
from time import struct_time
|
||||
from types import FrameType, TracebackType
|
||||
from typing import IO, Any, Callable, Generic, Mapping, MutableMapping, Optional, Sequence, Text, TypeVar, Union, overload
|
||||
from typing import IO, Any, Callable, Generic, Mapping, MutableMapping, Sequence, Text, TypeVar, Union, overload
|
||||
|
||||
_SysExcInfoType = Union[tuple[type, BaseException, Optional[TracebackType]], tuple[None, None, None]]
|
||||
_SysExcInfoType = Union[tuple[type, BaseException, TracebackType | None], tuple[None, None, None]]
|
||||
_ExcInfoType = None | bool | _SysExcInfoType
|
||||
_ArgsType = Union[tuple[Any, ...], Mapping[str, Any]]
|
||||
_FilterType = Filter | Callable[[LogRecord], int]
|
||||
|
||||
Reference in New Issue
Block a user