-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
Open
Labels
Description
Documentation
Docs for importlib.resources.abc.ResourceReader and the implementation differ in a few details. So far I've noticed
- Parameter name of
is_resource()differs
Docs:is_resource(name).
Code:is_resource(... path ...)Implementation calls the parameterpath - Behaviour of
contents()differs
Docs: "The abstract method returns an iterable of no items."
Code:raise FileNotFoundError
If fixes are desired then I'm happy to take it on, and coordinate fixes with e.g. https://github.com/python/importlib_resources, https://github.com/python/typeshed
Linked PRs
- gh-143513: Clarify changed argument name of ResourceReader.is_resource() #143523
- [3.14] gh-143513: Clarify changed argument name of
ResourceReader.is_resource(GH-143523) #143562 - [3.13] gh-143513: Clarify changed argument name of
ResourceReader.is_resource(GH-143523) #143563 - gh-143513: Clarify historic behaviour of importlib ResourceReader #143574
- gh-143513: Remove importlib.abc documentation for removed ABCs #143605
Metadata
Metadata
Assignees
Labels
Projects
Status
Todo