From 0cc82c4c0de8771c1323cc2e183497d722ea5bfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20van=20Noord?= <13665637+DanielNoord@users.noreply.github.com> Date: Fri, 9 Sep 2022 23:05:00 +0200 Subject: =?UTF-8?q?Turn=20on=20``mypy``=20strict=20mode=20=F0=9F=8E=89=20?= =?UTF-8?q?=20(#7448)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Ignore subclasses of Any * Add ignores for imported code and remove casts * Add disables for uninferable return values * Turn on ``mypy`` strict mode --- setup.cfg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'setup.cfg') diff --git a/setup.cfg b/setup.cfg index 51d6131da..01c53c377 100644 --- a/setup.cfg +++ b/setup.cfg @@ -39,13 +39,13 @@ max-complexity=39 min_python_version = 3.7.2 [mypy] -no_implicit_optional = True scripts_are_modules = True warn_unused_ignores = True -disallow_any_generics = True show_error_codes = True enable_error_code = ignore-without-code -check_untyped_defs = True +strict = True +# TODO: Remove this once pytest has annotations +disallow_untyped_decorators = False [mypy-astroid.*] ignore_missing_imports = True -- cgit v1.2.1