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 2
2
importlib_resources NEWS
3
3
==========================
4
4
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
+
5
13
v1.5.0
6
14
======
7
15
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.
166
166
Extending
167
167
=========
168
168
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
170
170
provides 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 .
174
174
175
175
176
176
.. rubric :: Footnotes
You can’t perform that action at this time.
0 commit comments