Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jorenham/scipy-stubs

Typing Stubs for SciPy
https://github.com/jorenham/scipy-stubs

basedmypy basedpyright data-science mypy pep484 pep561 pyright python python-stubs python-typing python3 scipy stubs type-stubs

Last synced: 1 day ago
JSON representation

Typing Stubs for SciPy

Awesome Lists containing this project

README

        

scipy-stubs


Typing stubs for SciPy.



scipy-stubs - PyPI


scipy-stubs - Python Versions


scipy-stubs - dependencies


scipy-stubs - license




scipy-stubs - CI



scipy-stubs - pre-commit


scipy-stubs - basedmypy


scipy-stubs - basedpyright


scipy-stubs - ruff

______________________________________________________________________

## Installation

```shell
pip install scipy-stubs
```

## Development Status

| `scipy._` | `ruff` & `flake8-pyi` | `stubtest` | `basedmypy` | `basedpyright` | phase |
| :------------ | :-------------------: | :--------: | :---------: | :------------: | :---: |
| `_lib` | ✔️ | ✔️ | ✔️ | ✔️ | 🌕 |
| `cluster` | ✔️ | ✔️ | ✔️ | ✔️ | 🌕 |
| `constants` | ✔️ | ✔️ | ✔️ | ✔️ | 🌝 |
| `datasets` | ✔️ | ✔️ | ✔️ | ✔️ | 🌝 |
| `fft` | ✔️ | ✔️ | ✔️ | ✔️ | 🌔 |
| `fftpack` | ✔️ | ✔️ | ✔️ | ✔️ | 🌔 |
| `integrate` | ✔️ | ✔️ | ✔️ | ✔️ | 🌔 |
| `interpolate` | ✔️ | ✔️ | ✔️ | ✔️ | 🌓 |
| `io` | ✔️ | ✔️ | ✔️ | ✔️ | 🌕 |
| `linalg` | ✔️ | ✔️ | ✔️ | ✔️ | 🌕 |
| ~`misc`~ | ✔️ | ✔️ | ✔️ | ✔️ | 🌕 |
| `ndimage` | ✔️ | ✔️ | ✔️ | ✔️ | 🌕 |
| `odr` | ✔️ | ✔️ | ✔️ | ✔️ | 🌕 |
| `optimize` | ✔️ | ✔️ | ✔️ | ✔️ | 🌓 |
| `signal` | ✔️ | ✔️ | ✔️ | ✔️ | 🌒 |
| `sparse` | ✔️ | ✔️ | ✔️ | ✔️ | 🌒 |
| `spatial` | ✔️ | ✔️ | ✔️ | ✔️ | 🌕 |
| `special` | ✔️ | ✔️ | ✔️ | ✔️ | 🌓 |
| `stats` | ✔️ | ✔️ | ✔️ | ✔️ | 🌕 |

## Version Compatibility

### Type-checkers

For validation and testing, `scipy-stubs` primarily uses [`basedmypy`](https://github.com/KotlinIsland/basedmypy) (a `mypy` fork)
and [`basedpyright`](https://github.com/DetachHead/basedpyright) (a `pyright` fork).
They are in generally stricter than `mypy` and `pyright`, so you can assume compatibility with `mypy` and `pyright` as well.
But if you find that this isn't the case, then don't hesitate to open an issue or submit a pull request.

### Required dependencies

The versioning scheme of `scipy-stubs` includes the compatible `scipy` version as `{scipy_version}.{stubs_version}`.
Even though `scipy-stubs` doesn't enforce an upper bound on the `scipy` version, later `scipy` versions aren't guaranteed to be
fully compatible.

Apart from `scipy`'s own dependencies, (e.g. `numpy`), the only other required dependency is
[`optype`](https://github.com/jorenham/optype), which itself only depends on `typing_extensions`.

The exact version requirements are specified in the [`pyproject.toml`](pyproject.toml).