Skip to content

Commit

Permalink
fix: __array__ accepts positional arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Oct 6, 2023
1 parent f96b72c commit ba1459a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/awkward/contents/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down

0 comments on commit ba1459a

Please sign in to comment.