nirum
nirum copied to clipboard
Add mypy check in test
Add mypy check for type safety.
Fun issues encountered with mypy until now:
-
https://github.com/python/typeshed/issues/1463
-
(no issue yet) Missing stub for pkg_resources.Distribution.PKG_INFO
-
https://github.com/python/mypy/issues/5483
-
(no issue yet, possibly non-issue) reveal_type(A.doc) is always
Optional[str]even if docstring is declared -
https://github.com/python/mypy/issues/2087
We might want to wait implementing mypy until it is sufficiently matured.