mypy is type checking for Python - it can run type analysis
on your code and help fix bugs. Projects that use type
checking on their code and want to make use of pyotp are
helped by pyotp having type hints, so they can catch errors
in their code.
While it is possible to do type hinting with Python2, since
2020 is the year of Python2's demise, I added type hinting
Python3 style, since that is so much more readable. I also
removed all Python2 compatibility code.
I also added some more tests for parse_uri, coverage should
now be at 100%.
mypy is type checking for Python - it can run type analysis on your code and help fix bugs. Projects that use type checking on their code and want to make use of pyotp are helped by pyotp having type hints, so they can catch errors in their code.
While it is possible to do type hinting with Python2, since 2020 is the year of Python2's demise, I added type hinting Python3 style, since that is so much more readable. I also removed all Python2 compatibility code.
I also added some more tests for parse_uri, coverage should now be at 100%.
Also various cleanup to the repo (Makefile etc).