mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 05:24:52 +08:00
Use PEP 604 syntax wherever possible (#7493)
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
import socket
|
||||
import sys
|
||||
from _typeshed import Self, StrPath
|
||||
from typing import Any, Callable, ClassVar, Iterable, NamedTuple, Optional, Text, Union, overload
|
||||
from typing import Any, Callable, ClassVar, Iterable, NamedTuple, Text, Union, overload
|
||||
from typing_extensions import Literal
|
||||
|
||||
_PCTRTT = tuple[tuple[str, str], ...]
|
||||
_PCTRTTT = tuple[_PCTRTT, ...]
|
||||
_PeerCertRetDictType = dict[str, Union[str, _PCTRTTT, _PCTRTT]]
|
||||
_PeerCertRetType = Union[_PeerCertRetDictType, bytes, None]
|
||||
_PeerCertRetDictType = dict[str, str | _PCTRTTT | _PCTRTT]
|
||||
_PeerCertRetType = _PeerCertRetDictType | bytes | None
|
||||
_EnumRetType = list[tuple[bytes, str, Union[set[str], bool]]]
|
||||
_PasswordType = Union[Callable[[], Union[str, bytes]], str, bytes]
|
||||
_PasswordType = Union[Callable[[], str | bytes], str, bytes]
|
||||
|
||||
_SC1ArgT = SSLSocket
|
||||
_SrvnmeCbType = Callable[[_SC1ArgT, Optional[str], SSLSocket], Optional[int]]
|
||||
_SrvnmeCbType = Callable[[_SC1ArgT, str | None, SSLSocket], int | None]
|
||||
|
||||
class SSLError(OSError):
|
||||
library: str
|
||||
|
||||
Reference in New Issue
Block a user