-
Notifications
You must be signed in to change notification settings - Fork 101
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
Add how to install and use section to README #264
Comments
@rowoflo, which type checker are you using? |
I am using |
I don't think the project is meant to be installed. But if you want to install it, you can add your own If you only want the scipy stubs, it would be something like: """Package setup"""
from setuptools import setup
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name="python-type-stubs",
version="0.1.0",
url="https://github.com/microsoft/python-type-stubs",
author="microsoft",
description="A set of type stubs for popular Python packages.",
license="MIT License",
long_description=long_description,
long_description_content_type="text/markdown",
package_data={
"scipy-stubs": ["*.pyi", "**/*.pyi", "**/**/*.pyi", "**/**/**/*.pyi"],
},
packages=[
"scipy-stubs",
],
python_requires=">=3.8",
zip_safe=False,
) If you fork the repository, add this |
These stubs are shipped with Pylance and we use this repo as a way to collaborate with users on them. @tmke8 is right that these stubs aren't |
Anyone coming here looking for instructions to use these stubs with mypy:
To confirm that things should work run
|
@Avasam just addressed this in #338. Please take a look at the new README section and let us know if it works for you. |
I am getting the common
mypy
error for my project.I see that the
scipy.spatial.transform
library stubs are provided with this project. But I don't know how to install them.I tried installing with pip in my 3.8.13 virtual environment
but I get this error
What is the recommended way to install
python-type-stubs
and are there any pointers for using it?It would be great if this information could be added to the README.
The text was updated successfully, but these errors were encountered: