GeezerVison is showing github.com — Run mypy on `Tools/wasm` · Issue #109125 · python/cpython
Run mypy on Tools/wasm #109125
Description
Feature or enhancement
Right now we already have 3 fully typed and checked tools:
I think we can also add Tools/wasm quite easily to this list.
Tools/wasm already has most of the type annotations, but there are some mypy errors to fix.
Linked PRs
Activity
brettcannon commented on Sep 8, 2023
I'm not sure if it's worth keeping a couple of scripts typed, especially based on the restrictions of typing in the repo (e.g., older versions of Python w/o typing_extensions access, etc.). I honestly would be fine stripping out the types in the scripts in that directory rather than try to keep the types working.
Reacted by Donghee Na and chirk
corona10 commented on Sep 10, 2023
AlexWaygood commented on Sep 10, 2023
We may need to define the scope of what scripts would be worth adding typing, and applying mypy pipeline.
I'm not sure this needs to be formalised much. I think we should add mypy to CI for self-contained CPython projects where the maintainers of those projects say they'd find it useful. We should avoid doing so for projects where the maintainers of those projects say it wouldn't be useful.
Reacted by Jelle Zijlstra, Erlend E. Aasland and chirk
vstinner commented on Sep 10, 2023
Once I will be done with refactoring libregrtest #109162 I will need help to add type hints there ;-) IMO it would be a more interesting target than Tools/wasm/ scripts.
hugovk commented on Sep 19, 2023
Metadata
Metadata
Development
No branches or pull requestsIssue actions