From 5a73641b57c55a6217d9565dda9ef39c11b012b9 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 3 Aug 2020 10:26:40 +1000 Subject: [PATCH] enable strict equality checks in mypy Without it, the following code reports no problems: def foo() -> int: return 5 print(foo == 5) --- pylib/mypy.ini | 1 + qt/mypy.ini | 1 + 2 files changed, 2 insertions(+) diff --git a/pylib/mypy.ini b/pylib/mypy.ini index 6ad6b351b..3b3754b19 100644 --- a/pylib/mypy.ini +++ b/pylib/mypy.ini @@ -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 diff --git a/qt/mypy.ini b/qt/mypy.ini index 2e68b4a08..a1115908a 100644 --- a/qt/mypy.ini +++ b/qt/mypy.ini @@ -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