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

Install missing stubs for mypy 0.900 #762

Merged
merged 2 commits into from
Jun 12, 2021

Conversation

bhrutledge
Copy link
Contributor

Prompted by the output from a failed test run:

types run-test: commands[0] | mypy --html-report mypy --txt-report mypy twine
twine/utils.py:25: error: Library stubs not installed for "requests" (or incompatible with Python 3.9)
twine/__main__.py:20: error: Library stubs not installed for "requests" (or incompatible with Python 3.9)
twine/repository.py:18: error: Library stubs not installed for "requests" (or incompatible with Python 3.9)
twine/commands/upload.py:19: error: Library stubs not installed for "requests" (or incompatible with Python 3.9)
twine/commands/upload.py:19: note: Hint: "python3 -m pip install types-requests"
twine/commands/upload.py:19: note: (or run "mypy --install-types" to install all missing stub packages)
twine/commands/upload.py:19: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports

The suggested docs and relevant blog post seemed clear enough. I tried mypy --install-types, but it's interactive (for now):

% mypy --install-types
Installing missing stub packages:
/Users/bhrutledge/Dev/twine/.tox/types/bin/python -m pip install types-requests

Install? [yN] 

@bhrutledge
Copy link
Contributor Author

Hm. Codecov is failing randomly. Will investigate later.

@bhrutledge bhrutledge merged commit e0a3a57 into pypa:master Jun 12, 2021
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

Successfully merging this pull request may close these issues.

1 participant