-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #193 from jorenham/maintenance/basedpyright-1.22.0
bump `basedpyright` to `1.22.0`
- Loading branch information
Showing
13 changed files
with
206 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# see `scipy/stats/_biasedurn.pyx` | ||
|
||
from typing import type_check_only | ||
from typing_extensions import Never | ||
|
||
import numpy as np | ||
import optype as op | ||
import optype.numpy as onp | ||
from scipy._typing import RNG | ||
|
||
@type_check_only | ||
class _PyNCHypergeometric: | ||
def __init__(self, /, n: op.CanInt, m: op.CanInt, N: op.CanInt, odds: op.CanFloat, accuracy: op.CanFloat) -> None: ... | ||
def mode(self, /) -> int: ... | ||
def mean(self, /) -> float: ... | ||
def variance(self, /) -> float: ... | ||
def probability(self, /, x: op.CanInt) -> float: ... | ||
def moments(self, /) -> tuple[float, float]: ... | ||
|
||
### | ||
|
||
class _PyFishersNCHypergeometric(_PyNCHypergeometric): ... | ||
class _PyWalleniusNCHypergeometric(_PyNCHypergeometric): ... | ||
|
||
class _PyStochasticLib3: | ||
def __init__(self, /, *args: Never, **kwargs: Never) -> None: ... | ||
def Random(self, /) -> float: ... | ||
def SetAccuracy(self, /, accur: op.CanFloat) -> None: ... | ||
def FishersNCHyp(self, /, n: op.CanInt, m: op.CanInt, N: op.CanInt, odds: op.CanFloat) -> _PyFishersNCHypergeometric: ... | ||
def WalleniusNCHyp(self, /, n: op.CanInt, m: op.CanInt, N: op.CanInt, odds: op.CanFloat) -> _PyWalleniusNCHypergeometric: ... | ||
# | ||
def rvs_fisher( | ||
self, | ||
/, | ||
n: op.CanInt, | ||
m: op.CanInt, | ||
N: op.CanInt, | ||
odds: op.CanFloat, | ||
size: op.CanInt, | ||
random_state: RNG | None = None, | ||
) -> onp.Array1D[np.float64]: ... | ||
def rvs_wallenius( | ||
self, | ||
/, | ||
n: op.CanInt, | ||
m: op.CanInt, | ||
N: op.CanInt, | ||
odds: op.CanFloat, | ||
size: op.CanInt, | ||
random_state: RNG | None = None, | ||
) -> onp.Array1D[np.float64]: ... | ||
|
||
def __setstate_cython__(self: object, pyx_state: object, /) -> None: ... | ||
def __reduce_cython__(self: object) -> None: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters