Add more Python type hints and add mypy valitations. This validation could be a step in GH actions or tox
You can learn more about type hints in this link
Mypy has a command line checker:
Ideally, mypy must return 0 errors, but could be a hard work because pyms create dynamic attributes.