mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
enable strict equality checks in mypy
Without it, the following code reports no problems: def foo() -> int: return 5 print(foo == 5)
This commit is contained in:
parent
d9b6793616
commit
5a73641b57
2 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,7 @@ check_untyped_defs = true
|
|||
disallow_untyped_decorators = True
|
||||
warn_redundant_casts = True
|
||||
warn_unused_configs = True
|
||||
strict_equality = true
|
||||
|
||||
[mypy-win32file]
|
||||
ignore_missing_imports = True
|
||||
|
|
|
@ -7,6 +7,7 @@ disallow_untyped_decorators = True
|
|||
warn_redundant_casts = True
|
||||
warn_unused_configs = True
|
||||
check_untyped_defs = true
|
||||
strict_equality = true
|
||||
|
||||
[mypy-aqt.mpv]
|
||||
ignore_errors=true
|
||||
|
|
Loading…
Reference in a new issue