Open
Conversation
jorenham
requested changes
Jan 19, 2026
Member
jorenham
left a comment
There was a problem hiding this comment.
Thanks; sounds like a good improvement to me (assuming that it works).
This will need runtime test, e.g. to verify that non-function callables like
class F:
def __call__(self, x):
return x
assert np.frompyfunc(F(), 1, 1)(42) == 42still work.
c1cea0d to
003b2cc
Compare
Member
|
The docstring signatures also need to be updated numpy/numpy/_core/_add_newdocs.py Lines 4886 to 4891 in 4e2d3f0 That'll (magically) also fix the stubtest errors :) |
d9cd8c5 to
cab0c24
Compare
jorenham
reviewed
Jan 19, 2026
jorenham
approved these changes
Jan 19, 2026
Member
jorenham
left a comment
There was a problem hiding this comment.
Ok, all good from me on the typing side. It might be good for another maintainer to look at this before merging though.
seberg
reviewed
Jan 20, 2026
2cca835 to
bf204db
Compare
09338f3 to
d8b9292
Compare
6cd37f6 to
4494eb4
Compare
Co-authored-by: Joren Hammudoglu <jhammudoglu@gmail.com>
4494eb4 to
2f9de76
Compare
Member
|
Seems to be a net positive. Do we have any idea how this might break current usage? Trying to prevent a regression like #24530 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This eliminates redundantly typing
nin/noutespecially when obvious withlambda.Before
After