From a1f6fbba374c6b2865d3c23cb6989cfcc4dae6eb Mon Sep 17 00:00:00 2001 From: jorenham Date: Tue, 30 Dec 2025 00:21:08 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=BD=EF=B8=8F=20`random.*`=20sync=20def?= =?UTF-8?q?aults=20with=20upstream?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/numpy-stubs/random/_mt19937.pyi | 2 +- src/numpy-stubs/random/_pcg64.pyi | 4 ++-- src/numpy-stubs/random/_philox.pyi | 2 +- src/numpy-stubs/random/mtrand.pyi | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/numpy-stubs/random/_mt19937.pyi b/src/numpy-stubs/random/_mt19937.pyi index cfa2977a..f4ce08cd 100644 --- a/src/numpy-stubs/random/_mt19937.pyi +++ b/src/numpy-stubs/random/_mt19937.pyi @@ -23,4 +23,4 @@ class _MT19937State(TypedDict): class MT19937(BitGenerator[_MT19937State]): def _legacy_seeding(self, seed: _ArrayLikeInt_co) -> None: ... - def jumped(self, jumps: int = ...) -> Self: ... + def jumped(self, jumps: int = 1) -> Self: ... diff --git a/src/numpy-stubs/random/_pcg64.pyi b/src/numpy-stubs/random/_pcg64.pyi index ab93b9f7..51ef477b 100644 --- a/src/numpy-stubs/random/_pcg64.pyi +++ b/src/numpy-stubs/random/_pcg64.pyi @@ -21,9 +21,9 @@ class _PCG64State(TypedDict): ### class PCG64(BitGenerator[_PCG64State]): - def jumped(self, jumps: int = ...) -> Self: ... + def jumped(self, jumps: int = 1) -> Self: ... def advance(self, delta: int) -> Self: ... class PCG64DXSM(BitGenerator[_PCG64State]): - def jumped(self, jumps: int = ...) -> Self: ... + def jumped(self, jumps: int = 1) -> Self: ... def advance(self, delta: int) -> Self: ... diff --git a/src/numpy-stubs/random/_philox.pyi b/src/numpy-stubs/random/_philox.pyi index acf70234..2eb40d77 100644 --- a/src/numpy-stubs/random/_philox.pyi +++ b/src/numpy-stubs/random/_philox.pyi @@ -32,5 +32,5 @@ class Philox(BitGenerator[_PhiloxState]): counter: _nt.ToInteger_nd | None = None, key: _nt.ToInteger_nd | None = None, ) -> None: ... - def jumped(self, jumps: int = ...) -> Self: ... + def jumped(self, jumps: int = 1) -> Self: ... def advance(self, delta: int) -> Self: ... diff --git a/src/numpy-stubs/random/mtrand.pyi b/src/numpy-stubs/random/mtrand.pyi index 2cc54aae..be3897b9 100644 --- a/src/numpy-stubs/random/mtrand.pyi +++ b/src/numpy-stubs/random/mtrand.pyi @@ -77,7 +77,7 @@ _LegacyState: TypeAlias = tuple[str, _nt.Array[np.uint32], int, int, float] class RandomState: _bit_generator: Final[BitGenerator] - def __init__(self, /, seed: _nt.CoInteger_nd | BitGenerator[Any] | None = ...) -> None: ... + def __init__(self, /, seed: _nt.CoInteger_nd | BitGenerator[Any] | None = None) -> None: ... @override def __getstate__(self) -> dict[str, Any]: ... def __setstate__(self, /, state: dict[str, Any]) -> None: ...