Remove Python 3.7 branches (#11238)

This commit is contained in:
Sebastian Rittau
2024-01-05 11:39:39 +01:00
committed by GitHub
parent 4e62577002
commit 23604858a6
122 changed files with 1952 additions and 3800 deletions

View File

@@ -16,10 +16,7 @@ if sys.platform != "win32":
else:
from multiprocessing.connection import PipeConnection
if sys.version_info >= (3, 8):
__all__ = ()
else:
__all__: list[str] = []
__all__ = ()
_LockLike: TypeAlias = synchronize.Lock | synchronize.RLock
_CT = TypeVar("_CT", bound=_CData)
@@ -39,10 +36,8 @@ class BaseContext:
# multiprocessing.*, so the signatures should be identical (modulo self).
@staticmethod
def current_process() -> BaseProcess: ...
if sys.version_info >= (3, 8):
@staticmethod
def parent_process() -> BaseProcess | None: ...
@staticmethod
def parent_process() -> BaseProcess | None: ...
@staticmethod
def active_children() -> list[BaseProcess]: ...
def cpu_count(self) -> int: ...
@@ -151,8 +146,6 @@ class DefaultContext(BaseContext):
def __init__(self, context: BaseContext) -> None: ...
def get_start_method(self, allow_none: bool = False) -> str: ...
def get_all_start_methods(self) -> list[str]: ...
if sys.version_info < (3, 8):
__all__: ClassVar[list[str]]
_default_context: DefaultContext