From 92ad22ca77833d5c5c8841ece9368a6843e20c8d Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Thu, 24 Feb 2022 08:46:14 +0100 Subject: checkers: merge table cells if mypy & mypy --strict give same result --- puzzles/50_typevar_constrained.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'puzzles/50_typevar_constrained.py') diff --git a/puzzles/50_typevar_constrained.py b/puzzles/50_typevar_constrained.py index 50ce10a..4cff369 100644 --- a/puzzles/50_typevar_constrained.py +++ b/puzzles/50_typevar_constrained.py @@ -5,5 +5,5 @@ V = TypeVar("V", str, bytes) def check_v(x: Union[V, list[V]]) -> V: raise NotImplementedError() -def foo(a: list[Any]): +def foo(a: list[Any]) -> None: check_v(a) -- cgit v1.2.3