diff --git a/.mypyignore-todo b/.mypyignore-todo index 48cf963f..6d957a0a 100644 --- a/.mypyignore-todo +++ b/.mypyignore-todo @@ -27,10 +27,6 @@ scipy\._lib\._util\.(Generator|Seed)Type scipy\.cluster\.hierarchy\.ClusterNode\.__init__ scipy\.cluster\.vq\.kmeans2? -scipy\.constants\._codata\.exact_values -scipy\.constants\._codata\.(epsilon|mu)0 -scipy\.constants\._codata\.parse_constants_(2002to2014|2018toXXXX) - scipy\.fft\._basic_backend\.complex_funcs scipy\.fftpack\.(_pseudo_diffs\.)?diff diff --git a/scipy-stubs/constants/_codata.pyi b/scipy-stubs/constants/_codata.pyi index 11181b55..fbe670b8 100644 --- a/scipy-stubs/constants/_codata.pyi +++ b/scipy-stubs/constants/_codata.pyi @@ -87,9 +87,14 @@ _Unit: TypeAlias = Literal[ _Constant: TypeAlias = tuple[float, _Unit, float] _Constants: TypeAlias = Mapping[str, _Constant] +# private + +c: Final = 299792458.0 +k: Final = "electric constant" + # public -physical_constants: Final[_Constants] +physical_constants: Final[_Constants] = ... class ConstantWarning(DeprecationWarning): ... @@ -97,20 +102,3 @@ def find(sub: str | None = ..., disp: bool = ...) -> list[LiteralString] | None: def value(key: str) -> float: ... def unit(key: str) -> _Unit: ... def precision(key: str) -> float: ... - -# private - -txt2002: Final[str] = ... -txt2006: Final[str] = ... -txt2010: Final[str] = ... -txt2014: Final[str] = ... -txt2018: Final[str] = ... - -exact_values: Final[_Constants] = ... -c: Final = 299792458.0 -mu0: Final = 1.25663706212e-06 -epsilon0: Final = 8.8541878128e-12 -k: Final = "electric constant" - -def parse_constants_2002to2014(d: str) -> _Constants: ... -def parse_constants_2018toXXXX(d: str) -> _Constants: ...