Uh oh!
There was an error while loading. Please reload this page.
gh-121604: fix ResourceLoader deprecation warning message - #128859
Conversation
| 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.
No, it is documented in the importlib.resources.abc.ResourceReader description.
There was a problem hiding this comment.
But ResourceReader is scheduled for removal in 3.14
There was a problem hiding this comment.
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.
Not anymore, see the later comments in #97850
(Responding to Thomas' comment)
DeprecationWarning#121604