From ba1459a3e9e04d93176daa70e981963ff0a8d99a Mon Sep 17 00:00:00 2001 From: Angus Hollands Date: Fri, 6 Oct 2023 16:13:29 +0100 Subject: [PATCH] fix: `__array__` accepts positional arguments --- src/awkward/contents/content.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/awkward/contents/content.py b/src/awkward/contents/content.py index 6d98e912f4..5477ef32ee 100644 --- a/src/awkward/contents/content.py +++ b/src/awkward/contents/content.py @@ -289,7 +289,7 @@ def __array_function__(self, func, types, args, kwargs): "do not apply NumPy functions to low-level layouts (Content subclasses); put them in ak.highlevel.Array" ) - def __array__(self, **kwargs): + def __array__(self, dtype=None): raise TypeError( "do not try to convert low-level layouts (Content subclasses) into NumPy arrays; put them in ak.highlevel.Array" )