Skip to content

ENH,MAINT: Rename "relevant" to "dispatch" args and expose in context#13

Merged
seberg merged 1 commit into
scientific-python:mainfrom
seberg:dispatch-args
Jul 6, 2025
Merged

ENH,MAINT: Rename "relevant" to "dispatch" args and expose in context#13
seberg merged 1 commit into
scientific-python:mainfrom
seberg:dispatch-args

Conversation

@seberg

@seberg seberg commented Jul 5, 2025

Copy link
Copy Markdown
Contributor

This is useful for generic wrappers. I still wan to hold back to do all the work for them, but the information is rather readily available, so I think we can pass it on.

NumPy uses "relevant args" naming for the arguments we dispatch on, I decided to rename it to "dispatch" instead.
(Also changed to pass a tuple of types, because I think that is more future proof. We expect few types, a set isn't useful e.g. if done in C.)


cleaned up the tests slightly, to add a basic one for the context.

This is useful for generic wrappers.  I still wan to hold back to do
all the work for them, but the information is rather readily available,
so I think we can pass it on.

NumPy uses "relevant args" naming for the arguments we dispatch on,
I decided to rename it to "dispatch" instead.
(Also changed to pass a tuple of types, because I think that is more
future proof.  We expect few types, a set isn't useful e.g. if done in C.)
@seberg

seberg commented Jul 6, 2025

Copy link
Copy Markdown
Contributor Author

I'll go a bit too fast and merge this (and the other PR). But happy to follow up and we should not stop doing that very soon or immediately if someone is unhappy about this :).

@seberg seberg merged commit e6d6099 into scientific-python:main Jul 6, 2025
9 checks passed
@seberg seberg deleted the dispatch-args branch July 6, 2025 09:08
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