Nitrokey / pynitrokey

Python client for Nitrokey devices
Apache License 2.0
93 stars 28 forks source link

Extend strict mypy checks #444

Closed robin-nitrokey closed 9 months ago

robin-nitrokey commented 9 months ago

Strict mypy checks cannot be enabled on a per-module level, so we used the disallow_untyped_defs option to replace them. But actually there are many more options that would be set in strict mode. This patch adds these options to the mypy configuration, fixes some missing or wrong annotations and adds some ignores for more complex issues so that the checks still pass.

Fixes: https://github.com/Nitrokey/pynitrokey/issues/443