2 ms·
use mypy!
by macrael 2y ago
use mypy!
- cinntaile 2y ago> mypy found 0 issues It didn't help him. Which is a bit strange?
- ok_dad 2y agoTo make mypy strict enough to compare your dev experience to a typed language, you have to declare all sorts of configurations, otherwise there are huge swaths of things it’ll allow compared to most typed languages. I use below, and only when necessary use ignore comment pragmas when third party libraries are not typed. #? message format settings show_column_numbers = true show_error_codes = true #? strictness settings disallow_any_unimported = true disallow_any_expr = true disallow_any_decorated = true disallow_any_explicit = true disallow_any_generics = true disallow_subclassing_any = true disallow_untyped_calls = true disallow_untyped_defs = true disallow_incomplete_defs = true disallow_untyped_decorators = true no_implicit_optional = true warn_redundant_casts = true warn_unused_ignores = true warn_return_any = true warn_unreachable = true strict_equality = true strict = true