use mypy!
It didn't help him. Which is a bit strange?
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