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
3 changes: 0 additions & 3 deletions stdlib/@tests/stubtest_allowlists/py314.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ threading.Condition.locked

# Starting with Python 3.14.1, these methods accept None for some of their
# parameters, but would raise a TypeError with Python 3.14.0.
mmap.mmap.find
mmap.mmap.flush
mmap.mmap.rfind
multiprocessing.process.BaseProcess.__init__

# ====================================
# Pre-existing errors from Python 3.13
Expand Down
1 change: 0 additions & 1 deletion stdlib/@tests/stubtest_allowlists/py315.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ importlib._abc.Loader.load_module
importlib._bootstrap_external.NamespacePath
importlib.resources._common.package_to_anchor
mailbox._ProxyFile.__class_getitem__
multiprocessing.process.BaseProcess.__init__
threading.Condition.locked

# =============================================================
Expand Down
3 changes: 2 additions & 1 deletion stdlib/mmap.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,8 @@ class mmap:
else:
def madvise(self, option: int, start: int = 0, length: int = ..., /) -> None: ...

if sys.version_info >= (3, 15):
if sys.version_info >= (3, 14):
# default values changed in Python 3.14.1
def find(self, view: ReadableBuffer, start: int | None = None, end: int | None = None, /) -> int: ...
def rfind(self, view: ReadableBuffer, start: int | None = None, end: int | None = None, /) -> int: ...

Expand Down
2 changes: 1 addition & 1 deletion stdlib/multiprocessing/dummy/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class DummyProcess(threading.Thread):
@property
def exitcode(self) -> Literal[0] | None: ...
if sys.version_info >= (3, 14):
# Default changed in Python 3.14.1
# kwargs default changed in Python 3.14.1
def __init__(
self,
group: Any = None,
Expand Down
34 changes: 24 additions & 10 deletions stdlib/multiprocessing/process.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,30 @@ class BaseProcess:
daemon: bool
authkey: bytes
_identity: tuple[int, ...] # undocumented
def __init__(
self,
group: None = None,
target: Callable[..., object] | None = None,
name: str | None = None,
args: Iterable[Any] = (),
kwargs: Mapping[str, Any] = {},
*,
daemon: bool | None = None,
) -> None: ...
if sys.version_info >= (3, 14):
# kwargs default changed in Python 3.14.1
def __init__(
self,
group: None = None,
target: Callable[..., object] | None = None,
name: str | None = None,
args: Iterable[Any] = (),
kwargs: Mapping[str, Any] | None = None,
*,
daemon: bool | None = None,
) -> None: ...
else:
def __init__(
self,
group: None = None,
target: Callable[..., object] | None = None,
name: str | None = None,
args: Iterable[Any] = (),
kwargs: Mapping[str, Any] = {},
*,
daemon: bool | None = None,
) -> None: ...

def run(self) -> None: ...
def start(self) -> None: ...
if sys.version_info >= (3, 14):
Expand Down