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:
Damien Elmes 2020-08-03 10:26:40 +10:00
parent d9b6793616
commit 5a73641b57
2 changed files with 2 additions and 0 deletions

View file

@ -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

View file

@ -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