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: fix np.bool method declarations#29700

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.3.xfromcharris:backport-29695
Sep 6, 2025

Conversation

@charris
Copy link
Member

Backport#29695.

This partially addresses the incorrect way that we've been defining the methods of scalar types. Currently, this accidentally woirks in mypy, but there are good reasons for why it shouldn't. But as it currently stands, mypy can't address this, because that would cause problems for many libraries that use numpy.

Unless mypy_primer complains, then I'd like to backjport this, so that mypy doesn't have to wait ~5 months or so.

Seepython/mypy#15993 (comment) for context.

Note that the integer and floating scalar-type also have this issue. I'll address those in separate PR's (this weekend, hopefully).

@charrischarris added this to the2.3.3 release milestoneSep 6, 2025
@charrischarris added 08 - BackportUsed to tag backport PRs 41 - Static typing labelsSep 6, 2025
@charrischarris merged commit84f2eed intonumpy:maintenance/2.3.xSep 6, 2025
77 checks passed
@charrischarris deleted the backport-29695 branchSeptember 23, 2025 00:14
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

08 - BackportUsed to tag backport PRs41 - Static typing

Projects

None yet

Milestone

2.3.3 release

Development

Successfully merging this pull request may close these issues.

2 participants

@charris@jorenham

[8]ページ先頭

©2009-2025 Movatter.jp