Skip to content

feat!: __array__ is no longer allowed on NumpyArray and EmptyArray#2997

Merged
jpivarski merged 3 commits into
mainfrom
jpivarski/__array__-is-no-longer-allowed-on-NumpyArray-and-EmptyArray
Feb 2, 2024
Merged

feat!: __array__ is no longer allowed on NumpyArray and EmptyArray#2997
jpivarski merged 3 commits into
mainfrom
jpivarski/__array__-is-no-longer-allowed-on-NumpyArray-and-EmptyArray

Conversation

@jpivarski

@jpivarski jpivarski commented Feb 1, 2024

Copy link
Copy Markdown
Member

As per https://github.com/scikit-hep/awkward/wiki#api-breaking-changes-after-20 for 2.6.0, we now longer allow __array__ to be called on NumpyArray and EmptyArray.

@agoose77

agoose77 commented Feb 1, 2024

Copy link
Copy Markdown
Collaborator

Nice! This is failing in CI because numba 0.59 has been released, bringing in a feature that we couldn't test yet (the test throws NotImplementedError). I'll take a look.

@jpivarski

Copy link
Copy Markdown
Member Author

#2998 isn't in main yet, but when it is, merging main into here will fix the tests.

@jpivarski

Copy link
Copy Markdown
Member Author

Thanks!

@jpivarski
jpivarski enabled auto-merge (squash) February 2, 2024 18:20
@codecov

codecov Bot commented Feb 2, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7f2f219) 81.89% compared to head (574b69e) 81.90%.

Additional details and impacted files
Files Coverage Δ
src/awkward/contents/emptyarray.py 75.62% <ø> (+0.49%) ⬆️
src/awkward/contents/numpyarray.py 91.50% <ø> (+0.31%) ⬆️

@jpivarski
jpivarski merged commit 681163b into main Feb 2, 2024
@jpivarski
jpivarski deleted the jpivarski/__array__-is-no-longer-allowed-on-NumpyArray-and-EmptyArray branch February 2, 2024 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants