Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: support bool types in resolve_dtypes #2809

Merged
merged 2 commits into from
Nov 9, 2023
Merged

Conversation

agoose77
Copy link
Collaborator

@agoose77 agoose77 commented Nov 8, 2023

NumPy's ufunc.resolve_dtypes function does not accept bare Python bool types, despite upholding that pattern for the int, float, and complex types. This PR converts bool to np.dtype("bool").

Copy link

codecov bot commented Nov 8, 2023

Codecov Report

Merging #2809 (6914337) into main (ec261c2) will increase coverage by 0.00%.
The diff coverage is 94.11%.

Additional details and impacted files
Files Coverage Δ
src/awkward/_nplikes/array_module.py 86.37% <100.00%> (+0.35%) ⬆️
src/awkward/_nplikes/numpy_like.py 75.29% <ø> (ø)
src/awkward/_nplikes/typetracer.py 74.91% <87.50%> (+0.08%) ⬆️

@agoose77 agoose77 changed the title fix: support bool types in resolve_dtypes fix: support bool types in resolve_dtypes Nov 8, 2023
@agoose77 agoose77 enabled auto-merge (squash) November 8, 2023 22:51
@agoose77 agoose77 merged commit 9d874a0 into main Nov 9, 2023
37 of 38 checks passed
@agoose77 agoose77 deleted the agoose77/fix-dtype-of-bool branch November 9, 2023 11:50
@agoose77 agoose77 mentioned this pull request Nov 9, 2023
agoose77 added a commit that referenced this pull request Nov 9, 2023
* fix: support bool types in resolve_dtypes

* test: add simple test
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.

None yet

1 participant