[issue44195] importlib.abc.TraversableReader is not implemented

Filipe Laíns report at bugs.python.org
Sun May 23 11:48:36 EDT 2021


Filipe Laíns <lains at riseup.net> added the comment:

We do implement the protocol, and not TraversableResources, in some places, such as DegenerateFiles for eg. It seems to me that maybe that is an issue and we actually want to inherit from TraversableResources.

The question here is, are people supposed to be implementing readers with just files(), or are they always expected to inherit TraversableResources?

Regardless of the usefulness in code, please also consider type hinting. If people are expecting to be using this protocol, we should expose it.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44195>
_______________________________________


More information about the Python-bugs-list mailing list