Added stubs for python files generated from C++ (#136)

* added pybind11-stubgen

* docs for generating stubs

* added line to readme
This commit is contained in:
Diogo
2023-12-14 15:58:45 -05:00
committed by GitHub
parent b93c4cf378
commit f55908bc48
4 changed files with 46 additions and 3 deletions

View File

@@ -80,3 +80,10 @@ for more information on building the C++ and Python APIs from source.
Check out the [contribution guidelines](CONTRIBUTING.md) for more information
on contributing to MLX.
Optional: Generate stubs for C++ python objects to enable IDE auto-completion
```shell
pip install ".[dev]"
python setup.py generate_stubs
```