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: fixNDArray[floating] + float return type#28807

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 1 commit intonumpy:mainfromjorenham:typing/fix-28805
Apr 24, 2025

Conversation

jorenham
Copy link
Member

Closes#28805

@jorenham
Copy link
MemberAuthor

Should I label this as backport candidate, or are there no 2.2.6 plans?

@github-actionsGitHub Actions
Copy link

Diff frommypy_primer, showing the effect of this PR on type check results on a corpus of open source code:

vision (https://github.com/pytorch/vision)- torchvision/utils.py:270: error: Unused "type: ignore" comment  [unused-ignore]

@jorenham
Copy link
MemberAuthor

themypy_primer diff fortorchvision is irrelevant

@charris
Copy link
Member

or are there no 2.2.6 plans

2.2.6 plans are ... undecided. Go ahead and mark it.

jorenham reacted with thumbs up emoji

@charrischarris added the 09 - Backport-CandidatePRs tagged should be backported labelApr 24, 2025
@charrischarris merged commit5570e92 intonumpy:mainApr 24, 2025
76 checks passed
@charris
Copy link
Member

Thanks Joren.

jorenham reacted with thumbs up emoji

@jorenhamjorenham deleted the typing/fix-28805 branchApril 24, 2025 21:14
@jorenham
Copy link
MemberAuthor

or are there no 2.2.6 plans

2.2.6 plans are ... undecided. Go ahead and mark it.

For what it's worth; judging by the lack of mypy_primer diffs, I don't consider this to be a high-priority fix.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

TYP: mypy infers that adding/multiplying anpt.NDArray[np.float32] with afloat promotes dtype toAny ornp.float64
2 participants
@jorenham@charris

[8]ページ先頭

©2009-2025 Movatter.jp