Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate .pyi files for type inference compatibility #92

Open
timblakely opened this issue Apr 5, 2023 · 1 comment
Open

Generate .pyi files for type inference compatibility #92

timblakely opened this issue Apr 5, 2023 · 1 comment

Comments

@timblakely
Copy link

timblakely commented Apr 5, 2023

Currently Pylance - the language server used by the VSCode python extension - doesn't play nice with the cpython compiled shared object files:

image

However, if you use mypy's stubgen program you can automatically generate .pyi files that allow the internal types to be exposed:

cd $(dirname $(python3 -c "import tensorstore; print(tensorstore.__file__)")) && stubgen -p tensorstore -o ../

image

Would be nice to ship these inside the pypi package.

@stillwalker1234
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants