Skip to content

chore: have mypy import stub libraries by default #11

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

Merged
merged 4 commits into from
Jan 26, 2024
Merged

chore: have mypy import stub libraries by default #11

merged 4 commits into from
Jan 26, 2024

Conversation

jackwotherspoon
Copy link
Contributor

@jackwotherspoon jackwotherspoon commented Jan 26, 2024

Most libraries have stub packages for types. Adding --install-types will have mypy install them by default and not require them to be added to any deps.

Alternative is to add a poetry group for typing and add all required stubs to it: https://github.com/langchain-ai/langchain/blob/master/libs/core/pyproject.toml#L32

@jackwotherspoon jackwotherspoon self-assigned this Jan 26, 2024
@jackwotherspoon jackwotherspoon requested a review from a team as a code owner January 26, 2024 16:40
@jackwotherspoon
Copy link
Contributor Author

Looks like integration test build fails when no tests are run, can ignore

@kurtisvg kurtisvg requested a review from averikitsch January 26, 2024 17:22
@averikitsch averikitsch merged commit 1c4f5a8 into main Jan 26, 2024
@averikitsch averikitsch deleted the mypy branch January 26, 2024 20:34
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.

3 participants