From 4707cc617e5c7046752fa028aaafcf4aeee62ea6 Mon Sep 17 00:00:00 2001 From: Sebastian Mohr Date: Thu, 17 Apr 2025 14:28:46 +0200 Subject: [PATCH 1/2] Added a proposal for stricter configuration of mypy. --- pyproject.toml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index d985c54ea..0e8a02fc7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -281,3 +281,13 @@ ignore-variadic-names = true [tool.ruff.lint.pep8-naming] classmethod-decorators = ["cached_classproperty"] extend-ignore-names = ["assert*", "cached_classproperty"] + +[tool.mypy] +disallow_untyped_decorators = true +check_untyped_defs = true +disallow_any_generics = true +strict_optional = true +disallow_incomplete_defs = true +disallow_untyped_defs = true +warn_return_any = true +allow_redefinition = true From b8ce611b1e6b376f6dcd2461042f19d517507621 Mon Sep 17 00:00:00 2001 From: Sebastian Mohr Date: Thu, 17 Apr 2025 14:38:55 +0200 Subject: [PATCH 2/2] adjusted choice --- pyproject.toml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 0e8a02fc7..26d76f2a7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -283,11 +283,8 @@ classmethod-decorators = ["cached_classproperty"] extend-ignore-names = ["assert*", "cached_classproperty"] [tool.mypy] -disallow_untyped_decorators = true -check_untyped_defs = true -disallow_any_generics = true -strict_optional = true -disallow_incomplete_defs = true -disallow_untyped_defs = true -warn_return_any = true allow_redefinition = true +check_untyped_defs = true +disallow_incomplete_defs = true +disallow_any_generics = true +disallow_untyped_decorators = true