-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
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
gh-91491: Complete Whats New in 3.11 for typing #92708
Conversation
* Loosen runtime requirements for type annotations by removing the callable | ||
check in the private ``typing._type_check`` function. (Contributed by | ||
Gregory Beauregard in :gh:`90802`.) |
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.
Should we really include this? It's a private undocumented function (though David's recent bug report suggested to me otherwise).
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.
Given that it's already spawned a bug report, it's likely that other users will run into this change, so I think it's important to include.
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.
Agreed then. Could you please add a notice strongly discouraging users from using it too? We might as well try to dissuade users though it might be in vain :).
This function is for internal use only and is **unstable** and may change across versions. Please do not use this function. Instead, we recommend implementing this with your own code.
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.
That feels like a bit much for the What's New document. We should say what changed, but I don't think we need more than that.
Co-authored-by: Shantanu <[email protected]>
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.
Thank you for working on this!
Co-authored-by: Alex Waygood <[email protected]>
Thanks @JelleZijlstra for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Sorry @JelleZijlstra, I had trouble checking out the |
Thanks @JelleZijlstra for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Fixes pythonGH-91491 Co-authored-by: Shantanu <[email protected]> Co-authored-by: Alex Waygood <[email protected]> (cherry picked from commit 6b51773) Co-authored-by: Jelle Zijlstra <[email protected]>
GH-92958 is a backport of this pull request to the 3.11 branch. |
Fixes GH-91491 Co-authored-by: Shantanu <[email protected]> Co-authored-by: Alex Waygood <[email protected]> (cherry picked from commit 6b51773) Co-authored-by: Jelle Zijlstra <[email protected]>
Fixes #91491