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

Start adding types using monkeytype. #1432

Merged
merged 1 commit into from
Jan 11, 2024
Merged

Start adding types using monkeytype. #1432

merged 1 commit into from
Jan 11, 2024

Conversation

manthey
Copy link
Member

@manthey manthey commented Jan 11, 2024

We need to drop support for older pythons for this to be useful.

After running tox -e monkeytype-py311, you can then list which modules have type data via build/tox/monkeytype-py311/bin/monkeytype list-modules and apply the type annotations to a specific modules with build/tox/monkeytype-py311/bin/monkeytype apply <module>.

Check types using tox -e type.

The next steps are to turn on a few more mypy warnings, then start adding types to more of the source files.

We need to drop support for older pythons for this to be useful.

After running `tox -e monkeytype-py311`, you can then list which modules
have type data via `build/tox/monkeytype-py311/bin/monkeytype
list-modules` and apply the type annotations to a specific modules with
`build/tox/monkeytype-py311/bin/monkeytype apply <module>`.

Check types using `tox -e type`.

The next steps are to turn on a few more mypy warnings, then start
adding types to more of the source files.
@manthey manthey merged commit 40b110f into master Jan 11, 2024
16 checks passed
@manthey manthey deleted the monkeytype branch January 11, 2024 16:08
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