Skip to content

Commit

Permalink
👽️ special: 1.15.0 support (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenham authored Dec 18, 2024
2 parents 68d066f + a6c9e0c commit 713ae0d
Show file tree
Hide file tree
Showing 7 changed files with 1,086 additions and 502 deletions.
9 changes: 0 additions & 9 deletions .mypyignore-todo
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
scipy\.special\.(cython_special\.)?btdtri?
scipy\.special\.(assoc_)?legendre_p(_all)?
scipy\.special\.sph_(harm_y|legendre_p)(_all)?
scipy\.special\.(_basic\.)?__all__
scipy\.special\.(_basic\.)?softplus
scipy\.special\.(_?basic\.)?factorial(2|k)?
scipy\.special\._spherical_bessel\.spherical_kn_reflection
scipy\.special\._spherical_bessel\.use_reflection

scipy\.stats\.__all__
scipy\.stats\.distributions\.__all__
scipy\.stats\._(continuous_distns|discrete_distns|multivariate|stats_py)\.__all__
Expand Down
143 changes: 128 additions & 15 deletions scipy-stubs/special/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,16 +1,129 @@
from typing_extensions import deprecated

from ._basic import *
from ._basic import (
ai_zeros,
assoc_laguerre,
bei_zeros,
beip_zeros,
ber_zeros,
bernoulli,
berp_zeros,
bi_zeros,
clpmn,
comb,
digamma,
diric,
erf_zeros,
euler,
factorial,
factorial2,
factorialk,
fresnel_zeros,
fresnelc_zeros,
fresnels_zeros,
h1vp,
h2vp,
ivp,
jn_zeros,
jnjnp_zeros,
jnp_zeros,
jnyn_zeros,
jvp,
kei_zeros,
keip_zeros,
kelvin_zeros,
ker_zeros,
kerp_zeros,
kvp,
lmbda,
lpmn,
lpn,
lqmn,
lqn,
mathieu_even_coef,
mathieu_odd_coef,
obl_cv_seq,
pbdn_seq,
pbdv_seq,
pbvv_seq,
perm,
polygamma,
pro_cv_seq,
riccati_jn,
riccati_yn,
sinc,
softplus,
stirling2,
y0_zeros,
y1_zeros,
y1p_zeros,
yn_zeros,
ynp_zeros,
yvp,
zeta,
)
from ._ellip_harm import ellip_harm, ellip_harm_2, ellip_normal
from ._lambertw import lambertw
from ._logsumexp import log_softmax, logsumexp, softmax
from ._orthogonal import *
from ._multiufuncs import (
assoc_legendre_p,
assoc_legendre_p_all,
legendre_p,
legendre_p_all,
sph_harm_y,
sph_harm_y_all,
sph_legendre_p,
sph_legendre_p_all,
)
from ._orthogonal import (
c_roots,
cg_roots,
chebyc,
chebys,
chebyt,
chebyu,
gegenbauer,
genlaguerre,
h_roots,
he_roots,
hermite,
hermitenorm,
j_roots,
jacobi,
js_roots,
l_roots,
la_roots,
laguerre,
legendre,
p_roots,
ps_roots,
roots_chebyc,
roots_chebys,
roots_chebyt,
roots_chebyu,
roots_gegenbauer,
roots_genlaguerre,
roots_hermite,
roots_hermitenorm,
roots_jacobi,
roots_laguerre,
roots_legendre,
roots_sh_chebyt,
roots_sh_chebyu,
roots_sh_jacobi,
roots_sh_legendre,
s_roots,
sh_chebyt,
sh_chebyu,
sh_jacobi,
sh_legendre,
t_roots,
ts_roots,
u_roots,
us_roots,
)
from ._sf_error import SpecialFunctionError, SpecialFunctionWarning
from ._spfun_stats import multigammaln
from ._spherical_bessel import spherical_in, spherical_jn, spherical_kn, spherical_yn
from ._support_alternative_backends import *

# `from ._ufuncs import *` doesn't work here because of the `btdtr[i]` deprecation by redefinition :(
from ._ufuncs import (
agm,
airy,
Expand All @@ -34,8 +147,6 @@ from ._ufuncs import (
binom,
boxcox,
boxcox1p,
# btdtr,
# btdtri,
btdtria,
btdtrib,
cbrt,
Expand Down Expand Up @@ -259,6 +370,8 @@ __all__ = [
"airy",
"airye",
"assoc_laguerre",
"assoc_legendre_p",
"assoc_legendre_p_all",
"bdtr",
"bdtrc",
"bdtri",
Expand All @@ -284,8 +397,6 @@ __all__ = [
"binom",
"boxcox",
"boxcox1p",
"btdtr",
"btdtri",
"btdtria",
"btdtrib",
"c_roots",
Expand Down Expand Up @@ -455,6 +566,8 @@ __all__ = [
"laguerre",
"lambertw",
"legendre",
"legendre_p",
"legendre_p_all",
"lmbda",
"log1p",
"log_expit",
Expand Down Expand Up @@ -571,8 +684,13 @@ __all__ = [
"smirnov",
"smirnovi",
"softmax",
"softplus",
"spence",
"sph_harm",
"sph_harm_y",
"sph_harm_y_all",
"sph_legendre_p",
"sph_legendre_p_all",
"spherical_in",
"spherical_jn",
"spherical_kn",
Expand Down Expand Up @@ -608,8 +726,3 @@ __all__ = [
"zeta",
"zetac",
]

@deprecated("will be removed in SciPy 1.14.0")
def btdtr(*args: object, **kwargs: object) -> object: ...
@deprecated("will be removed in SciPy 1.14.0")
def btdtri(*args: object, **kwargs: object) -> object: ...
Loading

0 comments on commit 713ae0d

Please sign in to comment.