What should we add?
There are a fair bit (complete?, no idea) of type annotations in the code.
It's not a great idea to have the annotations and not be running a type checker on them. Bad / incorrect annotations are worse that no annotations.
I have no experience with type checkers, but it seems MyPy is the most used now (though pyright is also ...).
Here's some advice on how to get started:
https://mypy.readthedocs.io/en/latest/existing_code.html#using-mypy-with-an-existing-codebase
@ocefpaf: Do you have any experience setting this up?
Reference
No response
What should we add?
There are a fair bit (complete?, no idea) of type annotations in the code.
It's not a great idea to have the annotations and not be running a type checker on them. Bad / incorrect annotations are worse that no annotations.
I have no experience with type checkers, but it seems MyPy is the most used now (though pyright is also ...).
Here's some advice on how to get started:
https://mypy.readthedocs.io/en/latest/existing_code.html#using-mypy-with-an-existing-codebase
@ocefpaf: Do you have any experience setting this up?
Reference
No response