ShahriyarR / MySQL-AutoXtraBackup

MySQL-AutoXtraBackup commandline tool written in Python 3 based on Percona XtraBackup
https://autoxtrabackup.azepug.az/
MIT License
139 stars 79 forks source link

Use Type hints - for more maintainable and readable code #401

Closed ShahriyarR closed 3 years ago

ShahriyarR commented 4 years ago

I want to add type hints to the project. And also will test mypy & mypyc. But I am not sure if it should go to release_v2.0

ShahriyarR commented 4 years ago

There is even an automated way of achieving this: https://github.com/Instagram/MonkeyType

MonkeyType collects runtime types of function arguments and return values, and can automatically generate stub files or even add draft type annotations directly to your Python code based on the types collected at runtime.

Guys I love the Python ecosystem :dancers:

ShahriyarR commented 3 years ago

Updated nearly all possible code portions with Type hints. Closing