This PR adds mypy to this project and the required types to the codebase.
It also adds a bunch of TODOs as mypy uncovered a couple of issues within the code, like inconsistent types or missing returns. I didn't want to introduce any significant changes to the code as part of this PR so I decided to let mypy ignore these for now, but with relevant TODOs so these can be addressed later.
Running mypy --show-error-codes --pretty --strict . on this code:
Success: no issues found in 16 source files
Running the same command on recent master:
Found 370 errors in 14 files (checked 16 source files)
Fixed #35
This PR adds
mypy
to this project and the required types to the codebase.It also adds a bunch of TODOs as
mypy
uncovered a couple of issues within the code, like inconsistent types or missing returns. I didn't want to introduce any significant changes to the code as part of this PR so I decided to letmypy
ignore these for now, but with relevant TODOs so these can be addressed later.Running
mypy --show-error-codes --pretty --strict .
on this code: Success: no issues found in 16 source filesRunning the same command on recent
master
: Found 370 errors in 14 files (checked 16 source files)