From 14253acb110c2d5bc8aa2a729bf261566e7342ff Mon Sep 17 00:00:00 2001 From: sobolevn Date: Thu, 31 Oct 2024 00:12:08 +0300 Subject: [PATCH 1/3] Use `strict = True` for `mypy_bootstrap.ini` --- mypy_bootstrap.ini | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/mypy_bootstrap.ini b/mypy_bootstrap.ini index c680990fbd9e..a470cfde1210 100644 --- a/mypy_bootstrap.ini +++ b/mypy_bootstrap.ini @@ -1,16 +1,5 @@ [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 show_traceback = True always_true = MYPYC From b374b3b8c5f91ff47a232d4287586fa4388d1c1f Mon Sep 17 00:00:00 2001 From: sobolevn Date: Thu, 31 Oct 2024 00:16:46 +0300 Subject: [PATCH 2/3] Set `warn_unused_ignore = False` --- mypy_bootstrap.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/mypy_bootstrap.ini b/mypy_bootstrap.ini index a470cfde1210..af73c1a8b1c8 100644 --- a/mypy_bootstrap.ini +++ b/mypy_bootstrap.ini @@ -1,5 +1,6 @@ [mypy] strict = True +warn_unused_ignore = False show_traceback = True always_true = MYPYC From 38a7a44b00ce9f29c90216930c87ebf139603c28 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Thu, 31 Oct 2024 00:23:55 +0300 Subject: [PATCH 3/3] Typo --- mypy_bootstrap.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mypy_bootstrap.ini b/mypy_bootstrap.ini index af73c1a8b1c8..6e82f23b0530 100644 --- a/mypy_bootstrap.ini +++ b/mypy_bootstrap.ini @@ -1,6 +1,6 @@ [mypy] strict = True -warn_unused_ignore = False +warn_unused_ignores = False show_traceback = True always_true = MYPYC