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

Fix MyPy linting #12

Closed
haplo opened this issue Jun 12, 2021 · 0 comments · Fixed by #13
Closed

Fix MyPy linting #12

haplo opened this issue Jun 12, 2021 · 0 comments · Fixed by #13
Milestone

Comments

@haplo
Copy link
Collaborator

haplo commented Jun 12, 2021

Currently failing because mypy 0.9.0 unbundled third-party type stubs, which now need to be installed separately.

mypy .
pylsp_black/plugin.py:4: error: Library stubs not installed for "toml" (or incompatible with Python 3.8)
pylsp_black/plugin.py:4: note: Hint: "python3 -m pip install types-toml"
pylsp_black/plugin.py:4: note: (or run "mypy --install-types" to install all missing stub packages)
pylsp_black/plugin.py:4: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
tests/test_plugin.py:8: error: Library stubs not installed for "pkg_resources" (or incompatible with Python 3.8)
tests/test_plugin.py:8: note: Hint: "python3 -m pip install types-pkg_resources"
Found 2 errors in 2 files (checked 6 source files)
@haplo haplo added this to the v1.0.1 milestone Jun 12, 2021
@haplo haplo closed this as completed in #13 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 a pull request may close this issue.

1 participant