-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
gh-89679: improve TraversableResources's documentation #29174
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
base: main
Are you sure you want to change the base?
Conversation
a960d23
to
3df59ff
Compare
@layday do you have any suggestions? |
Signed-off-by: Filipe Laíns <lains@riseup.net>
3df59ff
to
a9815ee
Compare
I'd reword this completely - it's far too verbose and fails to get the message across: An abstract base class implementing :class:`importlib.abc.ResourceReader`
for :class:`importlib.abc.Traversable` objects, and defining one
abstract method, :meth:`files`, which must return such an object.
Loaders are expected to implement this ABC for resource reading,
instead of implementing :class:`importlib.abc.ResourceReader` directly,
to interface with :meth:`importlib.resources.files`. Document the .. abstractmethod:: files()
An abstract method to return a :class:`importlib.abc.Traversable`
instance for the package's resources. Drag the |
https://bugs.python.org/issue45516 is closed. What is the status of this PR? |
Hi @iritkatriel, it is still relevant, but I am not sure if I will pick this up again soon. |
Ok, I reopened the issue on GitHub. |
This was my attempt at rewriting
TraversableResources
description to make it a bit clearer to people who are not familiar with the other protocols. I don't think I did a great job, but hopefully is a bit better.Does anyone have any suggestions on how to improve this?
https://bugs.python.org/issue45516