From 2a7588773d213d0ef614ffdd03a22c4e4f4f721e Mon Sep 17 00:00:00 2001 From: Alexandru Fikl <alexfikl@gmail.com> Date: Mon, 24 Jun 2024 16:36:07 +0300 Subject: [PATCH] remove unused type ignores --- pytools/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pytools/__init__.py b/pytools/__init__.py index 25de926..27e4bca 100644 --- a/pytools/__init__.py +++ b/pytools/__init__.py @@ -943,10 +943,7 @@ class memoize_in(Generic[P, R]): # noqa self.cache_dict[args] = result return result - # NOTE: mypy gets confused because it types `wraps` as - # Callable[[VarArg(Any)], Any] - # which, for some reason, is not compatible with `F` - return new_inner # type: ignore[return-value] + return new_inner class keyed_memoize_in(Generic[P, R]): # noqa -- GitLab