mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
fix self in ssl, unittest and multiprocessing/managers (#644)
This commit is contained in:
committed by
Guido van Rossum
parent
b1c545cee6
commit
252a772b67
@@ -4,7 +4,7 @@
|
||||
|
||||
from typing import Any
|
||||
|
||||
class BaseManager():
|
||||
def register(typeid: str, callable: Any = ...) -> None: ...
|
||||
class BaseManager:
|
||||
def register(self, typeid: str, callable: Any = ...) -> None: ...
|
||||
|
||||
class RemoteError(Exception): ...
|
||||
|
||||
@@ -219,8 +219,8 @@ class SSLContext:
|
||||
def set_default_verify_paths(self) -> None: ...
|
||||
def set_ciphers(self, ciphers: str) -> None: ...
|
||||
if sys.version_info >= (3, 5):
|
||||
def set_alpn_protocols(protocols: List[str]) -> None: ...
|
||||
def set_npn_protocols(protocols: List[str]) -> None: ...
|
||||
def set_alpn_protocols(self, protocols: List[str]) -> None: ...
|
||||
def set_npn_protocols(self, protocols: List[str]) -> None: ...
|
||||
def set_servername_callback(self,
|
||||
server_name_callback: Optional[_SrvnmeCbType]) \
|
||||
-> None: ...
|
||||
@@ -231,7 +231,7 @@ class SSLContext:
|
||||
suppress_ragged_eofs: bool = ...,
|
||||
server_hostname: Optional[str] = ...) -> 'SSLContext': ...
|
||||
if sys.version_info >= (3, 5):
|
||||
def wrap_bio(incoming: 'MemoryBIO', outgoing: 'MemoryBIO',
|
||||
def wrap_bio(self, incoming: 'MemoryBIO', outgoing: 'MemoryBIO',
|
||||
server_side: bool = ...,
|
||||
server_hostname: Optional[str] = ...) -> 'SSLObject': ...
|
||||
def session_stats(self) -> Dict[str, int]: ...
|
||||
|
||||
@@ -138,7 +138,7 @@ class TestCase:
|
||||
def defaultTestResult(self) -> TestResult: ...
|
||||
def id(self) -> str: ...
|
||||
def shortDescription(self) -> Optional[str]: ...
|
||||
def addCleanup(function: Callable[..., Any], *args: Any,
|
||||
def addCleanup(self, function: Callable[..., Any], *args: Any,
|
||||
**kwargs: Any) -> None: ...
|
||||
def doCleanups(self) -> None: ...
|
||||
# below is deprecated
|
||||
|
||||
Reference in New Issue
Block a user