-
Notifications
You must be signed in to change notification settings - Fork 147
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
Improve static type checking #201
Comments
I can take a look at this, at least partially, to slowly reduce the amount of type errors |
Part of #201 Signed-off-by: Omar Mohamed <[email protected]>
* Improve static type checking Add type annotation to is_too_long Function on apnstruncate.py file as part of #201 issue Signed-off-by: Omar Mohamed <[email protected]>
Add type annotation to truncate Function on apnstruncate.py file as part of #201 issue Signed-off-by: Omar Mohamed <[email protected]>
The current status:
234 x |
I would guess that a lot of those untyped calls are to twisted functions that lack annotations. You can add in your own stubs for twisted to suppress these, but in doing so you commit to reannotating everything we use in twisted that is already annotated upstream. I went down that path with sydent, and while it's doable I wouldn't recommend it! |
Running
mypy --strict sygnal/ tests/ setup.py
returns "634 errors in 27 files". We should start chipping away at that little by little. :)For an introduction to mypy, see https://mypy.readthedocs.io/
The text was updated successfully, but these errors were encountered: