Watson
Watson copied to clipboard
Some collected cleanups
When I wanted to work on some bug that keeps nagging me, I noticed that support or Python 3.5 was dropped. I also noticed some minor negligencese I could not resist to improve.
This PR resolves these negligences and adds static analysis by mypy. Mypy mostly checks static types but can detect also some other problems like tatulogical conditions or unreachable code.
Please note that while complete this PR is also a kind of RFC. If it is accepted, I might add some more type hints and the related refactorings with further PRs. So feel free to nit-pick a lot here ;-).
I force pushed fixes for the overly long lines.