From 98d3dd6cbcd005800c978080bbaff7a108ee3bf0 Mon Sep 17 00:00:00 2001 From: Daniel Eades Date: Sun, 25 Aug 2024 20:23:00 +0100 Subject: [PATCH 1/2] simplify mypy config --- pyproject.toml | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 96aa09271e8..5e73b908380 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -196,22 +196,13 @@ exclude = [ "^tests/test_util/typing_test_data\\.py$", # tests/test_writers ] -check_untyped_defs = true +strict = true + python_version = "3.10" show_column_numbers = true show_error_context = true -strict_optional = true -warn_redundant_casts = true -warn_unused_configs = true -warn_unused_ignores = true -disallow_any_generics = true -disallow_incomplete_defs = true -disallow_subclassing_any = true -disallow_untyped_calls = true -disallow_untyped_decorators = true -disallow_untyped_defs = true -no_implicit_reexport = true -extra_checks = true +strict_equality = false +warn_return_any = false enable_error_code = [ "type-arg", "redundant-self", From 961a3934d97bed221a1743fd4c509a58ab987405 Mon Sep 17 00:00:00 2001 From: Daniel Eades Date: Sun, 25 Aug 2024 20:23:58 +0100 Subject: [PATCH 2/2] fixup --- pyproject.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5e73b908380..bb1a8eb4b95 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -196,9 +196,8 @@ exclude = [ "^tests/test_util/typing_test_data\\.py$", # tests/test_writers ] -strict = true - python_version = "3.10" +strict = true show_column_numbers = true show_error_context = true strict_equality = false