diff --git a/stdlib/@tests/stubtest_allowlists/py314.txt b/stdlib/@tests/stubtest_allowlists/py314.txt index b76fa29cd7d2..caac7ec2a477 100644 --- a/stdlib/@tests/stubtest_allowlists/py314.txt +++ b/stdlib/@tests/stubtest_allowlists/py314.txt @@ -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 diff --git a/stdlib/@tests/stubtest_allowlists/py315.txt b/stdlib/@tests/stubtest_allowlists/py315.txt index ca45028b5386..c3bad582d999 100644 --- a/stdlib/@tests/stubtest_allowlists/py315.txt +++ b/stdlib/@tests/stubtest_allowlists/py315.txt @@ -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 # ============================================================= diff --git a/stdlib/mmap.pyi b/stdlib/mmap.pyi index 7aedd6711b01..ef673e130ef4 100644 --- a/stdlib/mmap.pyi +++ b/stdlib/mmap.pyi @@ -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: ... diff --git a/stdlib/multiprocessing/dummy/__init__.pyi b/stdlib/multiprocessing/dummy/__init__.pyi index 62fef2b080f2..b7e64dabfc80 100644 --- a/stdlib/multiprocessing/dummy/__init__.pyi +++ b/stdlib/multiprocessing/dummy/__init__.pyi @@ -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, diff --git a/stdlib/multiprocessing/process.pyi b/stdlib/multiprocessing/process.pyi index c7d13b318a44..1975da301ed0 100644 --- a/stdlib/multiprocessing/process.pyi +++ b/stdlib/multiprocessing/process.pyi @@ -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):