diff options
Diffstat (limited to 'puzzles/50_typevar_constrained.py')
-rw-r--r-- | puzzles/50_typevar_constrained.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |