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:
@@ -10,7 +10,7 @@ _FT = TypeVar("_FT")
|
||||
_P = ParamSpec("_P")
|
||||
|
||||
_ExceptionType = Union[type[BaseException], tuple[type[BaseException], ...]]
|
||||
_Regexp = Union[Text, Pattern[Text]]
|
||||
_Regexp = Text | Pattern[Text]
|
||||
|
||||
_SysExcInfoType = Union[tuple[type[BaseException], BaseException, types.TracebackType], tuple[None, None, None]]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user