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

make mypy recognize this package as having type hints #13

Merged
merged 2 commits into from
Aug 18, 2020

Conversation

Akuli
Copy link
Collaborator

@Akuli Akuli commented Aug 18, 2020

Mypy searches for this file, and if it's not found, it says that sansio_lsp_client has no type hints. I learned this by reading mypy's source code and I don't know if this is documented somewhere.

@Akuli
Copy link
Collaborator Author

Akuli commented Aug 18, 2020

fixes #9 (we thought it was already fixed but it wasn't)

@Akuli
Copy link
Collaborator Author

Akuli commented Aug 18, 2020

seems like this wouldn't work with poetry python-poetry/poetry#1338

@Akuli
Copy link
Collaborator Author

Akuli commented Aug 18, 2020

nevermind, it works with poetry and is documented here https://www.python.org/dev/peps/pep-0561/#packaging-type-information

@Akuli Akuli requested a review from PurpleMyst August 18, 2020 14:34
@PurpleMyst PurpleMyst merged commit c58fccf into PurpleMyst:master Aug 18, 2020
@Akuli
Copy link
Collaborator Author

Akuli commented Aug 18, 2020

I will bump version now

@Akuli Akuli deleted the typed branch August 19, 2020 08:24
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.

2 participants