mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Backport many Self-related changes to the Python-2 stdlib (#7128)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import socket
|
||||
import sys
|
||||
from _typeshed import StrPath
|
||||
from _typeshed import Self, StrPath
|
||||
from typing import Any, Callable, ClassVar, Iterable, NamedTuple, Optional, Text, Union, overload
|
||||
from typing_extensions import Literal
|
||||
|
||||
@@ -213,7 +213,7 @@ class SSLSocket(socket.socket):
|
||||
class SSLContext:
|
||||
check_hostname: bool
|
||||
options: int
|
||||
def __new__(cls, protocol: int, *args: Any, **kwargs: Any) -> SSLContext: ...
|
||||
def __new__(cls: type[Self], protocol: int, *args: Any, **kwargs: Any) -> Self: ...
|
||||
@property
|
||||
def protocol(self) -> int: ...
|
||||
verify_flags: int
|
||||
|
||||
Reference in New Issue
Block a user