diff --git a/stdlib/3/multiprocessing/managers.pyi b/stdlib/3/multiprocessing/managers.pyi index bbdb563f9..c5d053e01 100644 --- a/stdlib/3/multiprocessing/managers.pyi +++ b/stdlib/3/multiprocessing/managers.pyi @@ -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): ... diff --git a/stdlib/3/ssl.pyi b/stdlib/3/ssl.pyi index ea646b494..ce7700248 100644 --- a/stdlib/3/ssl.pyi +++ b/stdlib/3/ssl.pyi @@ -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]: ... diff --git a/stdlib/3/unittest.pyi b/stdlib/3/unittest.pyi index 933e8f15e..ff6494457 100644 --- a/stdlib/3/unittest.pyi +++ b/stdlib/3/unittest.pyi @@ -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