From f8d54e835549a4a96395394e4ae2d14aa3697d47 Mon Sep 17 00:00:00 2001 From: jorenham Date: Mon, 16 Dec 2024 18:19:05 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20regex'd=20`.mypyignore`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .mypyignore | 219 ++++++++++++---------------------------------------- 1 file changed, 48 insertions(+), 171 deletions(-) diff --git a/.mypyignore b/.mypyignore index ae11d9de..25691ca1 100644 --- a/.mypyignore +++ b/.mypyignore @@ -1,5 +1,5 @@ # typecheck-only helper types -scipy\.(\w+\.)?_typing +scipy(\.\w+)?\._typing # git submodules scipy\._lib\.(array_api_compat|array_api_extra|cobyqa).* @@ -18,7 +18,7 @@ scipy\.special\.libsf_error_state scipy\.stats\._rcont.rcont # omitted methods that always return `NotImplemented` or always raise -scipy\.sparse\._(\w+)\._(\w+)\.__(iadd|idiv|imul|isub|itruediv|len|rdiv|rtruediv)__ +scipy\.sparse\._(\w+)\._(\w+)\.__(len|i(add|mul|sub)|(i|r)(true)?div)__ # workarounds for mypy bugs scipy\._lib\._array_api\.(Array|ArrayLike) # these exist, but in `if TYPE_CHECKING: ...` @@ -31,197 +31,74 @@ scipy\.fftpack\.helper\.fftfreq scipy\.sparse\.(\w+)\.warn # numpy re-export with wrong annotations on numpy<1.24 -scipy.fftpack.fftfreq -scipy.fftpack._helper.fftfreq +scipy\.fftpack\.(_helper\.)?fftfreq # mypy fails recognize type-check-only ufunc subtypes as ufuncs # https://github.com/KotlinIsland/basedmypy/issues/816 scipy\.special\._basic\.digamma scipy\.special\._ufuncs\..* scipy\.special\._support_alternative_backends\..* -scipy\.stats\._qmvnt\.(phi|phinv) +scipy\.stats\._qmvnt\.phi(nv)? # https://github.com/KotlinIsland/basedmypy/issues/815 scipy.special.agm -scipy.special.bdtr -scipy.special.bdtrc -scipy.special.bdtri -scipy.special.bdtrik -scipy.special.bdtrin -scipy.special.bei -scipy.special.beip -scipy.special.ber -scipy.special.berp +scipy.special.be(i|r)p? scipy.special.besselpoly -scipy.special.beta -scipy.special.betainc -scipy.special.betaincc -scipy.special.betainccinv -scipy.special.betaincinv -scipy.special.betaln +scipy.special.(log_)?wright_bessel +scipy.special.beta(ln|incc?(inv)?)? scipy.special.binom -scipy.special.boxcox -scipy.special.boxcox1p -scipy.special.btdtria -scipy.special.btdtrib -scipy.special.cbrt -scipy.special.chdtr -scipy.special.chdtrc -scipy.special.chdtri -scipy.special.chdtriv -scipy.special.chndtr -scipy.special.chndtridf -scipy.special.chndtrinc -scipy.special.chndtrix -scipy.special.cosdg -scipy.special.cosm1 -scipy.special.cotdg -scipy.special.dawsn -scipy.special.digamma -scipy.special.ellipe -scipy.special.ellipeinc -scipy.special.ellipk -scipy.special.ellipkinc -scipy.special.ellipkm1 -scipy.special.elliprc -scipy.special.entr -scipy.special.erf -scipy.special.erfc -scipy.special.erfcinv -scipy.special.erfcx -scipy.special.erfi -scipy.special.erfinv -scipy.special.eval_chebyc -scipy.special.eval_chebys -scipy.special.eval_chebyt -scipy.special.eval_chebyu -scipy.special.eval_hermite -scipy.special.eval_hermitenorm -scipy.special.eval_laguerre -scipy.special.eval_legendre -scipy.special.eval_sh_chebyt -scipy.special.eval_sh_chebyu -scipy.special.eval_sh_legendre -scipy.special.exp1 -scipy.special.exp10 -scipy.special.exp2 -scipy.special.expi -scipy.special.expit -scipy.special.expm1 -scipy.special.expn -scipy.special.exprel -scipy.special.fdtr -scipy.special.fdtrc -scipy.special.fdtri -scipy.special.fdtridfd -scipy.special.gamma -scipy.special.gammainc -scipy.special.gammaincc -scipy.special.gammainccinv -scipy.special.gammaincinv -scipy.special.gammaln -scipy.special.gammasgn -scipy.special.gdtr -scipy.special.gdtrc -scipy.special.gdtria -scipy.special.gdtrib -scipy.special.gdtrix -scipy.special.huber -scipy.special.hyp0f1 -scipy.special.hyperu -scipy.special.i0 -scipy.special.i0e -scipy.special.i1 -scipy.special.i1e -scipy.special.inv_boxcox -scipy.special.inv_boxcox1p -scipy.special.it2struve0 -scipy.special.itmodstruve0 -scipy.special.itstruve0 -scipy.special.iv -scipy.special.ive -scipy.special.j0 -scipy.special.j1 -scipy.special.jn -scipy.special.jv -scipy.special.jve -scipy.special.k0 -scipy.special.k0e -scipy.special.k1 -scipy.special.k1e -scipy.special.kei -scipy.special.keip -scipy.special.ker -scipy.special.kerp +scipy.special.poch +scipy.special.(inv_)?boxcox(1p)? +scipy.special.cbrt(r(c|iv?)?)? +scipy.special.co(s|t)dg +scipy.special.(cos|pow)m1 +scipy.special.ellip((e|k)(inc)?|km1|rc) +scipy.special.erf(c(inv|x)?|i(nv)?)? +scipy.special.eval_(cheby(c|s|t|u)|hermite(norm)?|laguerre|legendre) +scipy.special.eval_sh_(cheby(t|u)|legendre) +scipy.special.exp(10?|2|i|it|m1|n|rel) +scipy.special.xlog(1p)?y +scipy.special.(di|log|r)?gamma +scipy.special.gamma(incc?(inv)?|ln|sgn)? +scipy.special.(pseudo_)?huber +scipy.special.hyp(0f1|eru) +scipy.special.(i|k)(0|1|v)e? +scipy.special.(mod)?struve +scipy.special.it(2|mod)?struve0 +scipy.special.(j|y)(0|1|n|ve?) +scipy.special.k(e(i|r)p?|n) +scipy.special.(rel_)?entr scipy.special.kl_div -scipy.special.kn -scipy.special.kolmogi -scipy.special.kolmogorov -scipy.special.kv -scipy.special.kve -scipy.special.log1p -scipy.special.log_expit -scipy.special.log_ndtr -scipy.special.log_wright_bessel -scipy.special.loggamma -scipy.special.logit +scipy.special.kolmog(i|orov) +scipy.special.log(_(expit|ndtr)|1p|it) scipy.special.lpmv -scipy.special.mathieu_a -scipy.special.mathieu_b -scipy.special.modstruve -scipy.special.nbdtr -scipy.special.nbdtrc -scipy.special.nbdtri -scipy.special.nbdtrik -scipy.special.nbdtrin -scipy.special.ncfdtr -scipy.special.ncfdtri -scipy.special.ncfdtridfd -scipy.special.ncfdtridfn -scipy.special.ncfdtrinc -scipy.special.nctdtr -scipy.special.nctdtridf -scipy.special.nctdtrinc -scipy.special.nctdtrit -scipy.special.ndtr -scipy.special.ndtri -scipy.special.ndtri_exp -scipy.special.nrdtrimn -scipy.special.nrdtrisd -scipy.special.obl_cv +scipy.special.mathieu_(a|b) +scipy.special.(obl|pro)_cv scipy.special.owens_t -scipy.special.pdtr -scipy.special.pdtrc -scipy.special.pdtri -scipy.special.pdtrik -scipy.special.poch -scipy.special.powm1 -scipy.special.pro_cv -scipy.special.pseudo_huber scipy.special.psi scipy.special.radian -scipy.special.rel_entr -scipy.special.rgamma scipy.special.round scipy.special.sindg -scipy.special.smirnov -scipy.special.smirnovi +scipy.special.smirnovi? scipy.special.spence -scipy.special.stdtr -scipy.special.stdtridf -scipy.special.stdtrit -scipy.special.struve scipy.special.tandg scipy.special.tklmbda scipy.special.voigt_profile +scipy.special.dawsn scipy.special.wofz -scipy.special.wright_bessel scipy.special.wrightomega -scipy.special.xlog1py -scipy.special.xlogy -scipy.special.y0 -scipy.special.y1 -scipy.special.yn -scipy.special.yv -scipy.special.yve scipy.special.zetac + +scipy.special.bdtr(c|i(k|n)?)? +scipy.special.btdtri(a|b) +scipy.special.chdtr(c|iv?)? +scipy.special.chndtr(i(df|nc|x))? +scipy.special.fdtr(c|i(dfd)?)? +scipy.special.gdtr(c|i(a|b|x))? +scipy.special.nbdtr(c|i(k|n)?)? +scipy.special.ncfdtr(i((nc)?|df(d|n)))? +scipy.special.nctdtr(i(df|nc|t))? +scipy.special.ndtr(i(_exp)?)? +scipy.special.nrdtri(mn|sd) +scipy.special.pdtr(c|ik?)? +scipy.special.stdtr(i(df|t))?