-
-
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-121604: fix ResourceLoader deprecation warning message #128859
base: main
Are you sure you want to change the base?
Conversation
Doc/library/importlib.rst
Outdated
Loaders that wish to support resource reading should implement a | ||
:meth:`get_resource_reader` method as specified by | ||
:class:`importlib.resources.abc.ResourceReader`. | ||
:class:`importlib.resources.abc.TraversableResources`. |
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.
No, it is documented in the importlib.resources.abc.ResourceReader
description.
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.
But ResourceReader is scheduled for removal in 3.14
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.
When ResourceReader has been removed, the documentation of its methods and of get_resource_reader()
should be moved to the TraversableResources description. For now, get_resource_reader()
is described with ResourceReader, and the code that implements get_resource_reader()
returning ResourceReader still works (but emits a warning).
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.
Not anymore, see the later comments in #97850
(Responding to Thomas' comment)
DeprecationWarning
#121604