mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-19 10:21:14 +08:00
Remove Python 3.7 branches (#11238)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user