Error for mypy in CI

Merged Ottomata requested to merge ci into main

Proactively use mypy and resolve mypy errors.

Merge request reports