You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Confused deprecation in importlib.resources.abc #107352
The documentation for importlib.resources.abc.Traversable says: "Deprecated since version 3.12, will be removed in version 3.14: Use importlib.resources.abc.Traversable instead."
The documentation for importlib.resources.abc.TraversableResources says: "Deprecated since version 3.12, will be removed in version 3.14: Use importlib.resources.abc.TraversableResources instead."
Why does it recommend to use the same deprecated class?
Activity
hugovk commentedon Jul 27, 2023
Ah, this is a bug, the classes in
importlib.abchave been deprecated, use the ones inimportlib.resources.abcinstead:https://docs.python.org/3.12/whatsnew/3.12.html#pending-removal-in-python-3-14
The deprecations would need moving to:
https://docs.python.org/3.12/library/importlib.html#module-importlib.abc
However, the classes aren't actually documented there.
It doesn't seem worth fully documenting them, shall we add brief entries? The class title, and the deprecation note?
AlexWaygood commentedon Jul 27, 2023
Duplicate of #105189
importlib.resources.abc.TraversableResourcessays it is deprecated in favour of itself #105189serhiy-storchaka commentedon Jul 28, 2023
Yes, I think it would be fine.