From 7dfade22c2c8cda14c377366446acca9ae95d8a2 Mon Sep 17 00:00:00 2001 From: Shantanu Jain Date: Fri, 2 Jan 2026 16:09:19 -0800 Subject: [PATCH 1/3] Enable --allow-redefinition-new on self check --- mypy_self_check.ini | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/mypy_self_check.ini b/mypy_self_check.ini index c52acb87f8698..66f0f5845d857 100644 --- a/mypy_self_check.ini +++ b/mypy_self_check.ini @@ -1,16 +1,25 @@ [mypy] +python_version = 3.10 +exclude = mypy/typeshed/|mypyc/test-data/|mypyc/lib-rt/ + +# Options that affect type checking strict = True +allow_redefinition_new = True local_partial_types = True disallow_any_unimported = True -show_traceback = True -pretty = True -always_false = MYPYC -plugins = mypy.plugins.proper_plugin -python_version = 3.10 -exclude = mypy/typeshed/|mypyc/test-data/|mypyc/lib-rt/ +warn_unreachable = True enable_error_code = ignore-without-code,redundant-expr enable_incomplete_feature = PreciseTupleTypes + +# Plugins or custom behaviour +always_false = MYPYC +plugins = mypy.plugins.proper_plugin + +# Options that affect output +pretty = True show_error_code_links = True -warn_unreachable = True +show_traceback = True + +# Miscellaneous fixed_format_cache = True From f3cf3cf84470f1c2a476f8eda2f29a5c5571e713 Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Tue, 24 Feb 2026 16:29:38 -0800 Subject: [PATCH 2/3] Apply suggestion --- mypy_self_check.ini | 1 - 1 file changed, 1 deletion(-) diff --git a/mypy_self_check.ini b/mypy_self_check.ini index 364548e064ef6..f223f8a7aaa55 100644 --- a/mypy_self_check.ini +++ b/mypy_self_check.ini @@ -24,4 +24,3 @@ show_traceback = True # Miscellaneous fixed_format_cache = True sqlite_cache = True -allow_redefinition_new = True From 8806afc437cf3f182d830b6539a311be35a0e677 Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Tue, 24 Feb 2026 16:31:06 -0800 Subject: [PATCH 3/3] Apply suggestion --- mypy_self_check.ini | 1 - 1 file changed, 1 deletion(-) diff --git a/mypy_self_check.ini b/mypy_self_check.ini index f223f8a7aaa55..cec47fb85b115 100644 --- a/mypy_self_check.ini +++ b/mypy_self_check.ini @@ -22,5 +22,4 @@ show_error_code_links = True show_traceback = True # Miscellaneous -fixed_format_cache = True sqlite_cache = True