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
Merged

Conversation

@bhrutledge
Copy link
Contributor

@bhrutledge bhrutledge commented Jun 9, 2021

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

@bhrutledge bhrutledge commented Jun 9, 2021

Hm. Codecov is failing randomly. Will investigate later.

Loading

@bhrutledge bhrutledge merged commit e0a3a57 into pypa:master Jun 12, 2021
23 checks passed
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant