From cf377c766d6ac8d72116bc71ad5c9d2f29996e03 Mon Sep 17 00:00:00 2001 From: Eric Wieser Date: Sun, 22 Mar 2020 14:21:18 +0000 Subject: MAINT: Remove some weird syntax for kwargs --- numpy/lib/function_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/lib/function_base.py') diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index e68b9f2ef..b3ad433cd 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -4533,7 +4533,7 @@ def insert(arr, obj, values, axis=None): if isinstance(obj, slice): # turn it into a range object - indices = arange(*obj.indices(N), **{'dtype': intp}) + indices = arange(*obj.indices(N), dtype=intp) else: # need to copy obj, because indices will be changed in-place indices = np.array(obj) -- cgit v1.2.1