-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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-129027: Raise DeprecationWarning for sys._clear_type_cache #129043
base: main
Are you sure you want to change the base?
Conversation
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.
sys._clear_type_cache
is used in other tests as well which will now raise a DeprecationWarning
. I think we should suppress the warnings in the relevant tests (or maybe switch to sys._clear_internal_caches()
? though that might make backporting tests to 3.12 more difficult since the function was added in 3.13)
This will also require a news entry :) |
Co-authored-by: Tomas R. <[email protected]>
Co-authored-by: Tomas R. <[email protected]>
Co-authored-by: Tomas R. <[email protected]>
@@ -0,0 +1 @@ | |||
Raise DeprecationWarning for :func:`sys._clear_type_cache` |
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.
We could also have a What's New entry as well, not just a NEWS entry. You could also mention that this function was deprecated since 3.13 but didn't raise a deprecation warning at runtime.
Co-authored-by: Bénédikt Tran <[email protected]>
DeprecationWarning
forsys._clear_type_cache
#129027