From 8799707ed3d5c3c94543c1f9a98690cceb269c4d Mon Sep 17 00:00:00 2001 From: Alex Fikl Date: Mon, 5 Apr 2021 13:17:39 -0500 Subject: [PATCH] remove handling of kwargs in wrapper MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Andreas Klöckner --- pytools/obj_array.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pytools/obj_array.py b/pytools/obj_array.py index 022b599..e3b0fa8 100644 --- a/pytools/obj_array.py +++ b/pytools/obj_array.py @@ -214,10 +214,7 @@ def obj_array_vectorize_n_args(f, *args): def obj_array_vectorized_n_args(f): - def wrapper(*args, **kwargs): - if len(kwargs): - raise NotImplementedError("kwargs are not supported") - + def wrapper(*args): return obj_array_vectorize_n_args(f, *args) update_wrapper(wrapper, f) -- GitLab