Closed D0han closed 4 years ago
Now down to 11 errors. I couldn't work out how to get type hinting working successfully on _socket
in VPN
. That will knock the error count down even more.
Also the issues with parse_raw
receiving None I need to look at but I haven't finished implementing kill
/client-kill
yet but when I've finished that, those should be better.
I suspect you had problems because of shadowed name. Proposal in #16.
Seems that after #16 mypy only complains about Optional
being used as if it would not be optional. Hard to disagree.
Implemented parsing output of kill
and client-kill
properly in https://github.com/Jamie-/openvpn-api/commit/db1f14331130c73b2b2bf9906d47b526d034978f and knocked down to 3 errors.
Got added with final mypy fixes in: 6a2699bb00d1062747d18d5248a84cdf15c4f3fa
This PR adds mypy to travis, to make use of type annotations.
Currently it shows 24 errors that could use some rethinking.