Add typechecking to the CI
pniedzielski opened this issue · comments
Our Python SDK makes use of type annotations throughout, but currently we do not check that these annotations are correct. Using mypy, we can check these type annotations statically. This is a good candidate for our CI checks, along with our other linters.
We have some minor typechecking errors in the codebase, especially relating to covariance, which should be fixed along with this.
It looks like we only typecheck our examples:
Line 89 in d3e3f43