The CI was not running Mypy on most of our Python files, and it was not using strict mode. This PR fixes both of those issues and also makes it easier to use Mypy locally by adding a configuration file.
I actually found a bug in pyqir-parser using mypy: QirArrayType defined a property element_types(self) -> List[QirType] but it should have been element_type(self) -> QirType.
The CI was not running Mypy on most of our Python files, and it was not using strict mode. This PR fixes both of those issues and also makes it easier to use Mypy locally by adding a configuration file.
I actually found a bug in pyqir-parser using mypy: QirArrayType defined a property
element_types(self) -> List[QirType]
but it should have beenelement_type(self) -> QirType
.