Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/hoechenberger/mne-python-stubs

Type stubs for MNE-Python
https://github.com/hoechenberger/mne-python-stubs

Last synced: about 1 month ago
JSON representation

Type stubs for MNE-Python

Awesome Lists containing this project

README

        

# Type stubs for MNE-Python

These are type stubs for MNE-Python. They contain docstrings for
a more convenient user experience when using static analysis tools
like Pylance in VS Code.

## Installation

```shell
pip install https://github.com/hoechenberger/mne-python-stubs/archive/refs/heads/main.zip
```

## Development

Clone this repository and `cd` into it.

```shell
pip install ".[dev]"
```

Running `python gen_type_stubs_mne.py` re-generates the type stubs for inclusion in
MNE-Python.

Running `python gen_type_stubs_vscode.py` re-generates the type stubs with special
markup for VS Code users.

## Notes

* The name of this repository is `mne-python-stubs`,
* the package name is `types-mne`, and
* the stubs will be deployed into a directory named `mne-stubs` inside the
Python `site-packages` directory.

Except for the first point, this is consistent with [typeshed](https://github.com/python/typeshed).