-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Update functools for 3.14 #14002
Conversation
@@ -269,6 +262,9 @@ types.UnionType.__mro_entries__ | |||
types.UnionType.__name__ | |||
types.UnionType.__qualname__ | |||
|
|||
# Assigning `__new__` causes `func` not to get recognized. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
Make updates required for
functools
in 3.14functools.reduce
making it soinitial
doesn't have to be positional.__annotations__
->__annotate__
inWRAPPER_ASSIGNMENTS
andupdate_wrapper
Final
s.functools.Placeholder