From b59878ec74bc4dd4dc3eafc1d3cdb2668da5f60a Mon Sep 17 00:00:00 2001 From: sobolevn Date: Thu, 31 Oct 2024 00:44:52 +0300 Subject: [PATCH] Use `strict = True` for `mypy_bootstrap.ini` (#18076) We almost had all strict flags set anyway, so many will just work. If not, it would be easier to turn something off. --- mypy_bootstrap.ini | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/mypy_bootstrap.ini b/mypy_bootstrap.ini index c680990fbd9e..6e82f23b0530 100644 --- a/mypy_bootstrap.ini +++ b/mypy_bootstrap.ini @@ -1,16 +1,6 @@ [mypy] -disallow_untyped_calls = True -disallow_untyped_defs = True -disallow_incomplete_defs = True -check_untyped_defs = True -disallow_subclassing_any = True -warn_no_return = True -strict_optional = True -no_implicit_optional = True -disallow_any_generics = True -disallow_any_unimported = True -warn_redundant_casts = True -warn_unused_configs = True +strict = True +warn_unused_ignores = False show_traceback = True always_true = MYPYC