File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed
Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 22 importlib_resources NEWS
33==========================
44
5+ v2.0.0
6+ ======
7+
8+ * Loaders are no longer expected to implement the
9+ ``abc.TraversableResources `` interface, but are instead
10+ expected to return ``TraversableResources `` from their
11+ ``get_resource_reader `` method.
12+
513v1.5.0
614======
715
Original file line number Diff line number Diff line change @@ -166,11 +166,11 @@ Both relative and absolute paths work for Python 3.7 and newer.
166166Extending
167167=========
168168
169- Starting with Python 3.9 and ``importlib_resources `` 1.3 , this package
169+ Starting with Python 3.9 and ``importlib_resources `` 2.0 , this package
170170provides an interface for non-standard loaders, such as those used by
171- executable bundlers, to supply resources. These loaders should subclass
172- from the `` TraversableResources `` abstract class and implement the
173- `` files() `` method to return a ``Traversable `` object .
171+ executable bundlers, to supply resources. These loaders should supply a
172+ `` get_resource_reader `` method, which is passed a module name and
173+ should return a ``TraversableResources `` instance .
174174
175175
176176.. rubric :: Footnotes
You can’t perform that action at this time.
0 commit comments