-
-
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 #13 from jorenham/
scipy.__init__
`scipy.__init__`
- Loading branch information
Showing
8 changed files
with
3,206 additions
and
425 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
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,31 @@ | ||
# This file is generated by SciPy's build process | ||
# It contains system_info results at the time of building this package. | ||
from enum import Enum | ||
from types import ModuleType | ||
from typing import Final, Literal, TypedDict, overload | ||
|
||
__all__ = ["show"] | ||
|
||
_ConfigDict = TypedDict( | ||
"_ConfigDict", | ||
{ | ||
"Compilers": dict[str, dict[str, str]], | ||
"Machine Information": dict[str, dict[str, str] | bool], | ||
"Build Dependencies": dict[str, dict[str, str | bool]], | ||
"Python Information": dict[str, str], | ||
}, | ||
) | ||
|
||
_built_with_meson: Final[bool] | ||
|
||
class DisplayModes(Enum): | ||
stdout = "stdout" | ||
dicts = "dicts" | ||
|
||
CONFIG: Final[_ConfigDict] | ||
|
||
def _check_pyyaml() -> ModuleType: ... | ||
@overload | ||
def show(mode: Literal["stdout"] = "stdout") -> _ConfigDict: ... | ||
@overload | ||
def show(mode: Literal["dicts"]) -> _ConfigDict: ... |
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 |
---|---|---|
@@ -1,12 +1,82 @@ | ||
from scipy._lib._ccallback import LowLevelCallable as LowLevelCallable | ||
from scipy._lib._testutils import PytestTester as PytestTester | ||
from scipy._typing import Untyped | ||
|
||
msg: str | ||
np_minversion: str | ||
np_maxversion: str | ||
test: Untyped | ||
submodules: Untyped | ||
|
||
def __dir__() -> Untyped: ... | ||
def __getattr__(name) -> Untyped: ... | ||
from collections.abc import Sequence | ||
from typing import Final, Literal | ||
from typing_extensions import LiteralString | ||
|
||
from . import ( | ||
cluster, | ||
constants, | ||
datasets, | ||
fft, | ||
fftpack, | ||
integrate, | ||
interpolate, | ||
io, | ||
linalg, | ||
misc, | ||
ndimage, | ||
odr, | ||
optimize, | ||
signal, | ||
sparse, | ||
spatial, | ||
special, | ||
stats, | ||
) | ||
from .__config__ import show as show_config | ||
from ._lib._ccallback import LowLevelCallable | ||
from ._lib._testutils import PytestTester | ||
|
||
__all__ = [ | ||
"LowLevelCallable", | ||
"__version__", | ||
"cluster", | ||
"constants", | ||
"datasets", | ||
"fft", | ||
"fftpack", | ||
"integrate", | ||
"interpolate", | ||
"io", | ||
"linalg", | ||
"misc", | ||
"ndimage", | ||
"odr", | ||
"optimize", | ||
"show_config", | ||
"signal", | ||
"sparse", | ||
"spatial", | ||
"special", | ||
"stats", | ||
"test", | ||
] | ||
__version__: Final[LiteralString] | ||
np_minversion: Final[LiteralString] | ||
np_maxversion: Final[LiteralString] | ||
|
||
test: Final[PytestTester] | ||
|
||
submodules: Final[ | ||
Sequence[ | ||
Literal[ | ||
"cluster", | ||
"constants", | ||
"datasets", | ||
"fft", | ||
"fftpack", | ||
"integrate", | ||
"interpolate", | ||
"io", | ||
"linalg", | ||
"misc", | ||
"ndimage", | ||
"odr", | ||
"optimize", | ||
"signal", | ||
"sparse", | ||
"spatial", | ||
"special", | ||
"stats", | ||
] | ||
] | ||
] |
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 |
---|---|---|
@@ -1,38 +1,43 @@ | ||
from scipy._typing import Untyped | ||
from collections.abc import Callable, Iterable, Sequence | ||
from typing import ClassVar, Final, Literal | ||
|
||
required_version: str | ||
IS_MUSL: bool | ||
IS_EDITABLE: Untyped | ||
import numpy as np | ||
|
||
__all__ = ["IS_MUSL", "PytestTester", "_TestPythranFunc", "check_free_memory"] | ||
|
||
IS_MUSL: Final[bool] | ||
IS_EDITABLE: Final[bool] | ||
|
||
class FPUModeChangeWarning(RuntimeWarning): ... | ||
|
||
class PytestTester: | ||
module_name: Untyped | ||
def __init__(self, module_name) -> None: ... | ||
module_name: Final[str] | ||
def __init__(self, /, module_name: str) -> None: ... | ||
def __call__( | ||
self, | ||
label: str = "fast", | ||
/, | ||
label: Literal["fast", "full"] = "fast", | ||
verbose: int = 1, | ||
extra_argv: Untyped | None = None, | ||
extra_argv: Iterable[str] | None = None, | ||
doctests: bool = False, | ||
coverage: bool = False, | ||
tests: Untyped | None = None, | ||
parallel: Untyped | None = None, | ||
) -> Untyped: ... | ||
tests: Iterable[str] | None = None, | ||
parallel: int | None = None, | ||
) -> bool: ... | ||
|
||
class _TestPythranFunc: | ||
ALL_INTEGER: Untyped | ||
ALL_FLOAT: Untyped | ||
ALL_COMPLEX: Untyped | ||
arguments: Untyped | ||
partialfunc: Untyped | ||
expected: Untyped | ||
def setup_method(self): ... | ||
def get_optional_args(self, func) -> Untyped: ... | ||
def get_max_dtype_list_length(self) -> Untyped: ... | ||
def get_dtype(self, dtype_list, dtype_idx) -> Untyped: ... | ||
def test_all_dtypes(self): ... | ||
def test_views(self): ... | ||
def test_strided(self): ... | ||
ALL_INTEGER: ClassVar[list[np.int8 | np.int16 | np.int32 | np.int64 | np.intc | np.intp]] | ||
ALL_FLOAT: ClassVar[list[np.float32 | np.float64]] | ||
ALL_COMPLEX: ClassVar[list[np.complex64 | np.complex128]] | ||
arguments: dict[int, tuple[np.ndarray[tuple[int, ...], np.dtype[np.generic]], list[np.generic]]] | ||
partialfunc: Callable[..., object] | None | ||
expected: object | None | ||
def setup_method(self) -> None: ... | ||
def get_optional_args(self, func: Callable[..., object]) -> dict[str, object]: ... | ||
def get_max_dtype_list_length(self) -> int: ... | ||
def get_dtype(self, dtype_list: Sequence[np.generic], dtype_idx: int) -> np.generic: ... | ||
def test_all_dtypes(self) -> None: ... | ||
def test_views(self) -> None: ... | ||
def test_strided(self) -> None: ... | ||
|
||
def check_free_memory(free_mb): ... | ||
def check_free_memory(free_mb: float) -> None: ... |
Oops, something went wrong.