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

bump fractions.pyi to 3.14#14070

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

Open
mkaraev wants to merge8 commits intopython:main
base:main
Choose a base branch
Loading
frommkaraev:bump-fractions-3.14

Conversation

mkaraev
Copy link

No description provided.

@github-actionsGitHub Actions

This comment has been minimized.

@github-actionsGitHub Actions

This comment has been minimized.

@mkaraev
Copy link
Author

@sobolevn can you please take a look?

@github-actionsGitHub Actions

This comment has been minimized.

@mkaraevmkaraev changed the titlebump fraction.py to 3.14bump fractions.pyi to 3.14May 15, 2025
Copy link
Member

@sobolevnsobolevn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

mkaraev reacted with thumbs up emoji
@sobolevn
Copy link
Member

ForFraction andif sys.version_info >= (3, 14): withmodulo

mkaraev reacted with thumbs up emoji

@mkaraev
Copy link
Author

ForFraction andif sys.version_info >= (3, 14): withmodulo

Thanks, I didn't get it quickly :) will add tests

@mkaraev
Copy link
Author

@sobolevn, okay, but what about these tests? aren't they enough?

assert_type(pow(Fraction(),4,None),Fraction)# pyright: ignore[reportAssertTypeFailure]
assert_type(Fraction()**4,Fraction)

@github-actionsGitHub Actions
Copy link
Contributor

According tomypy_primer, this change has no effect on the checked open source code. 🤖🎉

@mkaraevmkaraev requested a review fromsobolevnMay 15, 2025 10:41
@mkaraev
Copy link
Author

@sobolevn and also here additional check for non-None value of modulo

pow(Fraction(),5,8)# type: ignore

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@sobolevnsobolevnAwaiting requested review from sobolevn

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@mkaraev@sobolevn

[8]ページ先頭

©2009-2025 Movatter.jp