Nitrokey / pynitrokey

Python client for Nitrokey devices
Apache License 2.0
98 stars 27 forks source link

Reverse mypy exceptions #471

Closed robin-nitrokey closed 10 months ago

robin-nitrokey commented 10 months ago

Instead of disabling strict checks per default and only enabling them for new code, this patch enables strict checks per default and disables them for old code. This makes sure that new code is not accidentally ignored.

This patch also fixes some simple typing issues so that we can drop some exceptions.

This is a preparation for adding type checks for the nethsm module and extending the fido2 module.

daringer commented 10 months ago

on the path to full type hinting, nice!