thelastpickle / cassandra-medusa

Apache Cassandra Backup and Restore Tool
Apache License 2.0
263 stars 142 forks source link

Consider to use Python Typing #322

Open rhardouin opened 3 years ago

rhardouin commented 3 years ago

Project board link

Hi, To avoid type errors as much as possible I suggest to start using Python Typing capabilities

If it sounds good to you I can start to work on it and make multiple PRs (to avoid a massive PR to review).

In the beginning we would have to run mypy locally to fix warnings but in the long run such checks should also be triggered on each PR.

┆Issue is synchronized with this Jira Story by Unito

rhardouin commented 3 years ago

Other type checkers to consider:

jeffbanks commented 3 years ago

@rhardouin @adejanovski mentioned this one to me recently and sounds like a great idea. It would help out in many areas as you described. I'll take some time to investigate a few of these mentioned to see if we can throw around some pros and cons of each.