Add static type checks via mypy (optional static type checker), Add relevant tests, which could trigger the issue.