diff --git a/pytools/__init__.py b/pytools/__init__.py index 25de9268f14a0426fe69341964026b223165d701..27e4bca17955f8abd75d396dfd38be2f86fcaf1f 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