Skip to content

Commit d56e60a

Browse files
committed
🎨 poe codemod PosOnlySelf
1 parent 5b689d7 commit d56e60a

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

‎scipy-stubs/interpolate/_bary_rational.pyi

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,15 @@ class AAA(_BarycentricRational[_SCT_co, tuple[int]], Generic[_SCT_co]):
4444
weights: onp.Array1D[_SCT_co]
4545

4646
@property
47-
def support_points(self) -> onp.Array1D[_SCT_co]: ...
47+
def support_points(self, /) -> onp.Array1D[_SCT_co]: ...
4848
@property
49-
def support_values(self) -> onp.Array1D[_SCT_co]: ...
49+
def support_values(self, /) -> onp.Array1D[_SCT_co]: ...
5050

5151
#
5252
@overload
5353
def __init__(
5454
self,
55+
/,
5556
x: onp.CanArrayND[_SCT_co] | Sequence[_SCT_co],
5657
y: onp.CanArrayND[_SCT_co | _ToFloat16] | Sequence[_SCT_co | _ToFloat16],
5758
*,
@@ -63,6 +64,7 @@ class AAA(_BarycentricRational[_SCT_co, tuple[int]], Generic[_SCT_co]):
6364
@overload
6465
def __init__(
6566
self: AAA[np.float64],
67+
/,
6668
x: Sequence[float],
6769
y: onp.CanArrayND[_ToFloat64] | Sequence[float | _ToFloat64],
6870
*,
@@ -74,6 +76,7 @@ class AAA(_BarycentricRational[_SCT_co, tuple[int]], Generic[_SCT_co]):
7476
@overload
7577
def __init__(
7678
self: AAA[np.float64],
79+
/,
7780
x: onp.CanArrayND[_ToFloat64] | Sequence[float | _ToFloat64],
7881
y: Sequence[float],
7982
*,
@@ -85,6 +88,7 @@ class AAA(_BarycentricRational[_SCT_co, tuple[int]], Generic[_SCT_co]):
8588
@overload
8689
def __init__(
8790
self: AAA[np.complex128],
91+
/,
8892
x: Sequence[complex],
8993
y: onp.CanArrayND[_ToFloat64] | Sequence[complex | _ToComplex128],
9094
*,
@@ -96,6 +100,7 @@ class AAA(_BarycentricRational[_SCT_co, tuple[int]], Generic[_SCT_co]):
96100
@overload
97101
def __init__(
98102
self: AAA[np.complex128],
103+
/,
99104
x: onp.CanArrayND[_ToComplex128] | Sequence[complex | _ToComplex128],
100105
y: Sequence[complex],
101106
*,

‎scipy-stubs/stats/_distribution_infrastructure.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ class ContinuousDistribution(_BaseDistribution[_FloatT_co, _ShapeT_co], Generic[
341341
def reset_cache(self, /) -> None: ...
342342
def plot(
343343
self,
344+
/,
344345
x: _PlotQuantity = "x",
345346
y: _PlotQuantity = "pdf",
346347
*,

‎scipy-stubs/stats/_resampling.pyi

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ class MonteCarloMethod(ResamplingMethod):
5959

6060
def __init__(
6161
self,
62+
/,
6263
n_resamples: int = 9_999,
6364
batch: int | None = None,
6465
rvs: _RVSCallable | Sequence[_RVSCallable] | None = None,
@@ -81,6 +82,7 @@ class PermutationMethod(ResamplingMethod):
8182
@overload
8283
def __init__(
8384
self,
85+
/,
8486
n_resamples: int = 9_999,
8587
batch: int | None = None,
8688
random_state: None = None,
@@ -89,10 +91,12 @@ class PermutationMethod(ResamplingMethod):
8991
) -> None: ...
9092
@overload
9193
@deprecated("`random_state` is deprecated, use `rng` instead") # this is a reasonable lie
92-
def __init__(self, n_resamples: int, batch: int | None, random_state: ToRNG, *, rng: ToRNG = None) -> None: ...
94+
def __init__(self, /, n_resamples: int, batch: int | None, random_state: ToRNG, *, rng: ToRNG = None) -> None: ...
9395
@overload
9496
@deprecated("`random_state` is deprecated, use `rng` instead") # this is a reasonable lie
95-
def __init__(self, n_resamples: int = 9_999, batch: int | None = None, *, random_state: ToRNG, rng: ToRNG = None) -> None: ...
97+
def __init__(
98+
self, /, n_resamples: int = 9_999, batch: int | None = None, *, random_state: ToRNG, rng: ToRNG = None
99+
) -> None: ...
96100

97101
@dataclass(match_args=False)
98102
class BootstrapMethod(ResamplingMethod):

0 commit comments

Comments
 (0)