Skip to content

Commit 147ccd2

Browse files
authored
Merge pull request #1561 from scipy:pyrefly-0.61.1
⬆️ pyrefly 0.61.1
2 parents c493393 + 9ddcca2 commit 147ccd2

4 files changed

Lines changed: 33 additions & 14 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ type = [
6464
"matplotlib==3.10.8", # needed for `spatial._plotutils` and `stats._fit.FitResult.plot`
6565
"basedpyright==1.39.1",
6666
"mypy[faster-cache]==1.20.1",
67-
"pyrefly==0.61.0",
67+
"pyrefly==0.61.1",
6868
"stubdefaulter>=0.1.0",
6969
"ty==0.0.31",
7070
]

scipy-stubs/special/_ufuncs.pyi

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@ class _UFunc(np.ufunc, Generic[_NameT_co, _IdentityT_co]): # type: ignore[misc]
585585
@override
586586
def __class__(self, /) -> type[np.ufunc]: ...
587587
@__class__.setter
588+
@override
588589
def __class__(self, t: type[np.ufunc], /) -> None: ...
589590
@property
590591
@override
@@ -1025,6 +1026,7 @@ class _UFunc21ld(_UFuncWithoutIdentity, _UFunc21[_NameT_co, _IdentityT_co], Gene
10251026
@override
10261027
def at(self, a: _CoIntND, indices: _Indices, b: _ToFloat64OrND, /) -> None: ...
10271028
#
1029+
@override
10281030
@overload
10291031
def outer(self, n: onp.ToInt, x: onp.ToFloat64, /, **kw: Unpack[_Kw21ld]) -> np.float64: ...
10301032
@overload
@@ -1070,6 +1072,7 @@ class _UFunc21f(_UFunc21[_NameT_co, _IdentityT_co], Generic[_NameT_co, _Identity
10701072
out: _Out1[_FloatND | None] = None,
10711073
) -> _FloatND: ...
10721074
#
1075+
@override
10731076
@overload
10741077
def reduce(
10751078
self,
@@ -1144,6 +1147,7 @@ class _UFunc21f(_UFunc21[_NameT_co, _IdentityT_co], Generic[_NameT_co, _Identity
11441147
out: _Out1[_FloatND | None] = None,
11451148
) -> _FloatND: ...
11461149
#
1150+
@override
11471151
@overload
11481152
def outer(self, a: onp.ToFloat64, b: onp.ToFloat64, /, *, out: _Out1 = None, **kw: Unpack[_Kw21f]) -> _Float: ...
11491153
@overload
@@ -1180,6 +1184,7 @@ class _UFunc21c1(_UFuncWithoutIdentity, _UFunc21[_NameT_co, _IdentityT_co], Gene
11801184
def at(self, a: _CoFloat64ND, indices: _Indices, b: onp.ToFloat64_ND, /) -> None: ...
11811185

11821186
#
1187+
@override
11831188
@overload
11841189
def outer(self, a: onp.ToFloat64, b: _ToComplex128, /, **kw: Unpack[_Kw21c1]) -> _Complex: ...
11851190
@overload
@@ -1231,6 +1236,7 @@ class _UFunc21fc1(_UFunc21[_NameT_co, _IdentityT_co], Generic[_NameT_co, _Identi
12311236
out: _Out1[_FloatND | None] = None,
12321237
) -> _FloatND: ...
12331238
#
1239+
@override
12341240
@overload
12351241
def reduce(
12361242
self,
@@ -1305,6 +1311,7 @@ class _UFunc21fc1(_UFunc21[_NameT_co, _IdentityT_co], Generic[_NameT_co, _Identi
13051311
out: _Out1[_FloatND | None] = None,
13061312
) -> _FloatND: ...
13071313
#
1314+
@override
13081315
@overload
13091316
def outer(self, a: onp.ToFloat64, b: onp.ToFloat64, /, **kw: Unpack[_Kw21fc1]) -> _Float: ...
13101317
@overload
@@ -1349,11 +1356,13 @@ class _UFunc21fc2(_UFunc21[_NameT_co, _IdentityT_co], Generic[_NameT_co, _Identi
13491356
@overload
13501357
def __call__(self, a: _ToComplex128_D, b: _ToComplex128_D, /, out: _Out1[_OutT], **kw: Unpack[_Kw21fc2]) -> _OutT: ...
13511358
#
1359+
@override
13521360
@overload
13531361
def at(self, x: _CoFloat64ND, indices: _Indices, y: onp.ToFloat64_ND, /) -> None: ...
13541362
@overload
13551363
def at(self, x: _CoComplex128ND, indices: _Indices, y: _ToComplex128ND, /) -> None: ...
13561364
#
1365+
@override
13571366
@overload
13581367
def accumulate(
13591368
self,
@@ -1373,6 +1382,7 @@ class _UFunc21fc2(_UFunc21[_NameT_co, _IdentityT_co], Generic[_NameT_co, _Identi
13731382
out: _Out1[_InexactND | None] = None,
13741383
) -> _InexactND: ...
13751384
#
1385+
@override
13761386
@overload
13771387
def reduce(
13781388
self,
@@ -1461,6 +1471,7 @@ class _UFunc21fc2(_UFunc21[_NameT_co, _IdentityT_co], Generic[_NameT_co, _Identi
14611471
where: _ToBool_D = True,
14621472
) -> _OutT: ...
14631473
#
1474+
@override
14641475
@overload
14651476
def reduceat(
14661477
self,
@@ -1482,6 +1493,7 @@ class _UFunc21fc2(_UFunc21[_NameT_co, _IdentityT_co], Generic[_NameT_co, _Identi
14821493
out: _Out1[_InexactND | None] = None,
14831494
) -> _InexactND: ...
14841495
#
1496+
@override
14851497
@overload
14861498
def outer(self, a: onp.ToFloat64, b: onp.ToFloat64, /, **kw: Unpack[_Kw21fc2]) -> _Float: ...
14871499
@overload
@@ -1535,6 +1547,7 @@ class _UFunc22f(_UFunc22[_NameT_co, _IdentityT_co], Generic[_NameT_co, _Identity
15351547
self, v: _ToFloat64OrND, x: _ToFloat64OrND, out1: _OutT1, out2: _OutT2, /, **kw: Unpack[_Kw22f]
15361548
) -> tuple[_OutT1, _OutT2]: ...
15371549
#
1550+
@override
15381551
@overload
15391552
def outer(self, v: onp.ToFloat64, x: onp.ToFloat64, /, *, out: _None2 = ..., **kw: Unpack[_Kw22f]) -> _Tuple2[_Float]: ...
15401553
@overload
@@ -1596,6 +1609,7 @@ class _UFunc24f(_UFunc24[_NameT_co, _IdentityT_co], Generic[_NameT_co, _Identity
15961609
**kw: Unpack[_Kw24f],
15971610
) -> tuple[_OutT1, _OutT2, _OutT3, _OutT4]: ...
15981611
#
1612+
@override
15991613
@overload
16001614
def outer(self, u: onp.ToFloat64, m: onp.ToFloat64, /, *, out: _None2 = ..., **kw: Unpack[_Kw24f]) -> _Tuple4[_Float]: ...
16011615
@overload

scipy-stubs/stats/_distn_infrastructure.pyi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ class rv_continuous(_rv_mixin, rv_generic):
471471
) -> rv_continuous_frozen[Self]: ...
472472

473473
#
474+
@override
474475
@overload
475476
def freeze(self, /) -> rv_continuous_frozen[Self, _Float]: ...
476477
@overload
@@ -890,6 +891,7 @@ class rv_discrete(_rv_mixin, rv_generic):
890891
def __call__(self, /, *args: _ToFloatOrND, loc: _ToFloatOrND = 0, **kwds: _ToFloatOrND) -> rv_discrete_frozen[Self]: ...
891892

892893
#
894+
@override
893895
@overload
894896
def freeze(self, /) -> rv_discrete_frozen[Self, _Float]: ...
895897
@overload
@@ -1038,6 +1040,7 @@ class rv_sample(rv_discrete, Generic[_XKT_co, _PKT_co]):
10381040
@type_check_only
10391041
class _rv_continuous_0(rv_continuous):
10401042
# overrides of rv_generic
1043+
@override
10411044
@overload # loc: 0-d, scale: 0-d, moments: 1 (positional)
10421045
def stats(self, /, loc: onp.ToFloat, scale: onp.ToFloat, moment: _Moment1) -> _Float: ...
10431046
@overload # loc: 0-d, scale: 0-d, moments: 1 (keyword)
@@ -1169,6 +1172,7 @@ class _rv_continuous_0(rv_continuous):
11691172
def freeze(self, /, loc: _ToFloatOrND = 0, scale: _ToFloatOrND = 1) -> rv_continuous_frozen[Self]: ...
11701173

11711174
#
1175+
@override
11721176
@overload
11731177
def pdf(self, /, x: onp.ToFloat, loc: onp.ToFloat = 0, scale: onp.ToFloat = 1) -> _Float: ...
11741178
@overload
@@ -1270,6 +1274,7 @@ class _rv_continuous_0(rv_continuous):
12701274
) -> _FloatOrND: ...
12711275

12721276
#
1277+
@override
12731278
@overload
12741279
def _unpack_loc_scale(self, /, theta: Sequence[onp.ToFloat]) -> tuple[onp.ToFloat, onp.ToFloat, tuple[()]]: ...
12751280
@overload

uv.lock

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)