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

Skip to content

Update functools for 3.14 #14002

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
merged 8 commits into from
May 11, 2025
Merged

Conversation

max-muoto
Copy link
Contributor

@max-muoto max-muoto commented May 11, 2025

Make updates required for functools in 3.14

  • Updating functools.reduce making it so initial doesn't have to be positional.
  • __annotations__ -> __annotate__ in WRAPPER_ASSIGNMENTS and update_wrapper
  • Add missing Finals.
  • Add functools.Placeholder

@@ -269,6 +262,9 @@ types.UnionType.__mro_entries__
types.UnionType.__name__
types.UnionType.__qualname__

# Assigning `__new__` causes `func` not to get recognized.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Seeing issues here, __new__ hasn't changed but is being assigned to a function instead of being assigned inline causing issues with stub-test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

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

@max-muoto max-muoto marked this pull request as ready for review May 11, 2025 03:44
@JelleZijlstra JelleZijlstra merged commit 0f3ff08 into python:main May 11, 2025
64 checks passed
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