Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions stdlib/asyncio/unix_events.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ if sys.platform != "win32":
if sys.version_info >= (3, 12):
# Doesn't actually have ABCMeta metaclass at runtime, but mypy complains if we don't have it in the stub.
# See discussion in #7412
@deprecated("Deprecated since Python 3.12; removed in Python 3.14.")
class BaseChildWatcher(AbstractChildWatcher, metaclass=ABCMeta):
def close(self) -> None: ...
def is_active(self) -> bool: ...
Expand Down
19 changes: 6 additions & 13 deletions stdlib/multiprocessing/context.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -124,25 +124,18 @@ class BaseContext:
def allow_connection_pickling(self) -> None: ...
def set_executable(self, executable: str) -> None: ...
def set_forkserver_preload(self, module_names: list[str]) -> None: ...
@overload
def get_context(self, method: None = None) -> DefaultContext: ...
@overload
def get_context(self, method: Literal["spawn"]) -> SpawnContext: ...
if sys.platform != "win32":
@overload
def get_context(self, method: None = None) -> DefaultContext: ...
@overload
def get_context(self, method: Literal["spawn"]) -> SpawnContext: ...
@overload
def get_context(self, method: Literal["fork"]) -> ForkContext: ...
@overload
def get_context(self, method: Literal["forkserver"]) -> ForkServerContext: ...
@overload
def get_context(self, method: str) -> BaseContext: ...
else:
@overload
def get_context(self, method: None = None) -> DefaultContext: ...
@overload
def get_context(self, method: Literal["spawn"]) -> SpawnContext: ...
@overload
def get_context(self, method: str) -> BaseContext: ...

@overload
def get_context(self, method: str) -> BaseContext: ...
@overload
def get_start_method(self, allow_none: Literal[False] = False) -> str: ...
@overload
Expand Down
4 changes: 2 additions & 2 deletions stdlib/tarfile.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,9 @@ class TarFile:
errorlevel: Literal[0, 1, 2]
offset: int # undocumented
extraction_filter: _FilterFunction | None
if sys.version_info >= (3, 15):
if sys.version_info >= (3, 13):
stream: bool
if sys.version_info >= (3, 15):
def __init__(
self,
name: StrOrBytesPath | None = None,
Expand All @@ -153,7 +154,6 @@ class TarFile:
mtime: float | None = None,
) -> None: ...
elif sys.version_info >= (3, 13):
stream: bool
def __init__(
self,
name: StrOrBytesPath | None = None,
Expand Down
7 changes: 1 addition & 6 deletions stubs/pyserial/serial/serialposix.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,7 @@ if sys.platform == "linux":
SER_RS485_RTS_AFTER_SEND: int
SER_RS485_RX_DURING_TX: int

class PlatformSpecific(PlatformSpecificBase): ...

elif sys.platform == "cygwin":
class PlatformSpecific(PlatformSpecificBase): ...

elif sys.platform == "darwin":
if sys.platform == "darwin":
IOSSIOSPEED: int

class PlatformSpecific(PlatformSpecificBase):
Expand Down
Loading