This pull request is to fix broken typehints in the project, as well as add configuration files for mypy. Mypy can now be used to statically check the type safety of the project. As laid out in pyproject.toml, mypy is set to strict mode, so every function must have type hints. Previously I was not aware that python type hints were basically just comments without a linter like mypy.
The .gitignore has also been updated to ignore the .mypy_cache directory.
This pull request is to fix broken typehints in the project, as well as add configuration files for mypy. Mypy can now be used to statically check the type safety of the project. As laid out in
pyproject.toml
, mypy is set to strict mode, so every function must have type hints. Previously I was not aware that python type hints were basically just comments without a linter like mypy.The .gitignore has also been updated to ignore the .mypy_cache directory.