Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

TYP: fixcount_nonzero signature#28774

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
charris merged 2 commits intonumpy:maintenance/2.2.xfromcharris:backport-28750
Apr 19, 2025

Conversation

@charris
Copy link
Member

Backport of#28750.

This fixes the following valid usage inhttps://github.com/data-apis/array-api-compat/blob/16978e63b744185bc4ced4677c822468e6ddebd2/array_api_compat/numpy/_aliases.py#L126-L127 from being falsely rejected:

defcount_nonzero(x:Array,axis:int|tuple[int, ...]|None=None,keepdims:py_bool=False,)->Array:result=np.count_nonzero(x,axis=axis,keepdims=keepdims)

@charrischarris added 08 - BackportUsed to tag backport PRs 41 - Static typing labelsApr 19, 2025
Co-authored-by: Joren Hammudoglu <jhammudoglu@gmail.com>
@charrischarris merged commitb3e772c intonumpy:maintenance/2.2.xApr 19, 2025
69 checks passed
@charris
Copy link
MemberAuthor

Thanks Joren.

jorenham reacted with thumbs up emoji

@charrischarris deleted the backport-28750 branchApril 19, 2025 13:18
@jorenham
Copy link
Member

Thanks Joren.

Right back at ya

penguinpee added a commit to penguinpee/numpy that referenced this pull requestSep 25, 2025
The return type of the function was changed in 2.3.0, but the docstringremained the same (numpygh-28774).
penguinpee added a commit to penguinpee/numpy that referenced this pull requestOct 6, 2025
The return type of the function was changed in 2.3.0, but the docstringremained the same (numpygh-28774).
MaanasArora pushed a commit to MaanasArora/numpy that referenced this pull requestOct 13, 2025
The return type of the function was changed in 2.3.0, but the docstringremained the same (numpygh-28774).
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@jorenhamjorenhamjorenham left review comments

Assignees

No one assigned

Labels

08 - BackportUsed to tag backport PRs41 - Static typing

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@charris@jorenham

[8]ページ先頭

©2009-2025 Movatter.jp