mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Drop Python 3.3 support from several stubs (#2266)
* Drop Python 3.3 support from importlib stubs * Drop Python 3.3 support from html and symbol stubs
This commit is contained in:
committed by
Jelle Zijlstra
parent
1184726417
commit
b05e99297c
@@ -76,10 +76,8 @@ def get_logger() -> Logger: ...
|
||||
def log_to_stderr(level: Optional[Union[str, int]] = ...) -> Logger: ...
|
||||
def Manager() -> SyncManager: ...
|
||||
def set_forkserver_preload(module_names: List[str]) -> None: ...
|
||||
if sys.platform == 'win32' or sys.version_info >= (3, 4):
|
||||
def set_executable(executable: str) -> None: ...
|
||||
if sys.version_info >= (3, 4):
|
||||
def get_all_start_methods() -> List[str]: ...
|
||||
def get_context(method: Optional[str] = ...) -> BaseContext: ...
|
||||
def get_start_method(allow_none: Optional[bool]) -> Optional[str]: ...
|
||||
def set_start_method(method: str, force: Optional[bool] = ...) -> None: ...
|
||||
def set_executable(executable: str) -> None: ...
|
||||
def get_all_start_methods() -> List[str]: ...
|
||||
def get_context(method: Optional[str] = ...) -> BaseContext: ...
|
||||
def get_start_method(allow_none: Optional[bool]) -> Optional[str]: ...
|
||||
def set_start_method(method: str, force: Optional[bool] = ...) -> None: ...
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from typing import Any, Iterable, List, Optional, Tuple, Type, Union
|
||||
import socket
|
||||
import sys
|
||||
import types
|
||||
|
||||
# https://docs.python.org/3/library/multiprocessing.html#address-formats
|
||||
@@ -8,8 +7,7 @@ _Address = Union[str, Tuple[str, int]]
|
||||
|
||||
def deliver_challenge(connection: Connection, authkey: bytes) -> None: ...
|
||||
def answer_challenge(connection: Connection, authkey: bytes) -> None: ...
|
||||
if sys.version_info >= (3, 3):
|
||||
def wait(object_list: Iterable[Union[Connection, socket.socket, int]], timeout: Optional[float] = ...) -> List[Union[Connection, socket.socket, int]]: ...
|
||||
def wait(object_list: Iterable[Union[Connection, socket.socket, int]], timeout: Optional[float] = ...) -> List[Union[Connection, socket.socket, int]]: ...
|
||||
def Client(address: _Address, family: Optional[str] = ..., authkey: Optional[bytes] = ...) -> Connection: ...
|
||||
def Pipe(duplex: bool = ...) -> Tuple[Connection, Connection]: ...
|
||||
|
||||
@@ -21,9 +19,8 @@ class Listener:
|
||||
def address(self) -> _Address: ...
|
||||
@property
|
||||
def last_accepted(self) -> Optional[_Address]: ...
|
||||
if sys.version_info >= (3, 3):
|
||||
def __enter__(self) -> Listener: ...
|
||||
def __exit__(self, exc_type: Optional[Type[BaseException]], exc_value: Optional[BaseException], exc_tb: Optional[types.TracebackType]) -> None: ...
|
||||
def __enter__(self) -> Listener: ...
|
||||
def __exit__(self, exc_type: Optional[Type[BaseException]], exc_value: Optional[BaseException], exc_tb: Optional[types.TracebackType]) -> None: ...
|
||||
|
||||
class Connection:
|
||||
def close(self) -> None: ...
|
||||
|
||||
@@ -28,10 +28,9 @@ class Condition(ContextManager[bool]):
|
||||
def notify(self) -> None: ...
|
||||
def notify_all(self) -> None: ...
|
||||
def wait(self, timeout: Optional[float] = ...) -> bool: ...
|
||||
if sys.version_info >= (3, 3):
|
||||
def wait_for(self,
|
||||
predicate: Callable[[], bool],
|
||||
timeout: Optional[float] = ...) -> bool: ...
|
||||
def wait_for(self,
|
||||
predicate: Callable[[], bool],
|
||||
timeout: Optional[float] = ...) -> bool: ...
|
||||
def acquire(self,
|
||||
block: bool = ...,
|
||||
timeout: Optional[float] = ...) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user