Make mypy as strict as practical #13
1 changed files with 2 additions and 0 deletions
Enable the "truthy-iterable" error code
commit
883a3ab8cc
|
|
@ -482,6 +482,8 @@ enable_error_code = [
|
|||
"redundant-expr",
|
||||
# Report truthiness checks on objects that are always true
|
||||
"truthy-bool",
|
||||
# Report truthiness checks on `Iterable`s that are always true
|
||||
"truthy-iterable",
|
||||
]
|
||||
|
||||
# Check further edge cases that are rarely an issue in practice
|
||||
|
|
|
|||
Loading…
Reference in a new issue