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: remove old argument from broadcast_and_apply #2790

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

agoose77
Copy link
Collaborator

@agoose77 agoose77 commented Nov 1, 2023

A recent PR made this change, but it looks like I missed one usage. I've made the function keyword-only for the non-leading arguments. broadcast_and_apply is an internal function, but I also think these functions benefit from this change: future refactors will throw exceptions rather than silently re-interpreting an argument, and it helps readability. Incidentally, that's how most of the usages of broadcast_and_apply are written; keyword arguments for the non-leading order args.

As this fixes a bug that's clearly from a previous PR, and it doesn't change any behaviour, I'm going to merge in the interest of unblocking main.

@agoose77 agoose77 enabled auto-merge (squash) November 1, 2023 11:57
Copy link

codecov bot commented Nov 1, 2023

Codecov Report

Merging #2790 (7a6bf6b) into main (23f5322) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
Files Coverage Δ
src/awkward/_broadcasting.py 95.43% <ø> (ø)
src/awkward/operations/ak_concatenate.py 96.29% <ø> (ø)
src/awkward/operations/ak_mask.py 96.29% <ø> (ø)
src/awkward/operations/ak_where.py 90.74% <ø> (ø)
src/awkward/operations/ak_with_field.py 100.00% <ø> (ø)
src/awkward/operations/ak_zip.py 95.65% <ø> (ø)
src/awkward/operations/str/akstr_join.py 92.85% <ø> (ø)
src/awkward/operations/str/akstr_repeat.py 82.50% <ø> (ø)

@agoose77 agoose77 merged commit 2fbaa2c into main Nov 1, 2023
36 checks passed
@agoose77 agoose77 deleted the agoose77/fix-broadcast-and-apply-behavior branch November 1, 2023 12:23
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.

1 participant