Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fraction.__new__ now accepts anything with .as_integer_ratio() #12994

Merged
merged 7 commits into from
Nov 12, 2024

Conversation

InSyncWithFoo
Copy link
Contributor

stdlib/fractions.pyi Outdated Show resolved Hide resolved
InSyncWithFoo and others added 2 commits November 11, 2024 16:33
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>

This comment has been minimized.

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

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

Thanks. Our policy is generally not to accept changes to the stubs until the first beta for a CPython version has been released. But since you've already made this PR, I'm okay accepting it, since there's also a chance we'll forget about this change if we close it now.

stdlib/fractions.pyi Outdated Show resolved Hide resolved
stdlib/fractions.pyi Outdated Show resolved Hide resolved
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>

This comment has been minimized.

@AlexWaygood AlexWaygood merged commit 986e9e3 into python:main Nov 12, 2024
63 checks passed
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants