From 7dfade22c2c8cda14c377366446acca9ae95d8a2 Mon Sep 17 00:00:00 2001 From: Shantanu Jain Date: Fri, 2 Jan 2026 16:09:19 -0800 Subject: [PATCH] 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 c52acb87f869..66f0f5845d85 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