From 6e44d043fc5c6445f36e2b2f70c9a08bc54e2c71 Mon Sep 17 00:00:00 2001 From: Albert Tugushev Date: Sat, 13 Mar 2021 10:53:19 +0700 Subject: [PATCH] Enable disallow_untyped_defs for mypy --- setup.cfg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.cfg b/setup.cfg index 5cda9035e..c9ff3d363 100644 --- a/setup.cfg +++ b/setup.cfg @@ -71,6 +71,7 @@ pytest-parametrize-values-row-type = tuple profile = black [mypy] +disallow_untyped_defs = true disallow_any_generics = true disallow_incomplete_defs = true disallow_subclassing_any = true @@ -84,3 +85,6 @@ warn_redundant_casts = true warn_return_any = true warn_unused_configs = true warn_unused_ignores = true + +[mypy-tests.*] +disallow_untyped_defs = false