Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Python 3.14: Remove SupportsTrunc from ConvertibleToInt #13986

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

Merged

Conversation

Avasam
Copy link
Collaborator

@Avasam Avasam commented May 10, 2025

https://docs.python.org/3.14/library/functions.html#int

Changed in version 3.14: int() no longer delegates to the __trunc__() method.

@Avasam Avasam changed the title Python 3.14: Remove SupportsTrunc from ConvertibleToInt Python 3.14: Remove SupportsTrunc from ConvertibleToInt May 10, 2025
@Avasam
Copy link
Collaborator Author

Avasam commented May 10, 2025

@AlexWaygood hang on, I flipped the condition. Should be fixed now.

Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. πŸ€–πŸŽ‰

@AlexWaygood AlexWaygood merged commit f17ee46 into python:main May 10, 2025
64 checks passed
@Avasam Avasam deleted the Remove-SupportsTrunc-from-ConvertibleToInt branch May 10, 2025 17:28
max-muoto pushed a commit to max-muoto/typeshed that referenced this pull request May 10, 2025
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