Skip to content

Commit 9a8171c

Browse files
committed
GH-143513 Clarify historic behaviour of importlib ResourceReader
1 parent f8262b8 commit 9a8171c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Doc/library/importlib.resources.abc.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,11 @@
8989
the file system then those subdirectory names can be used
9090
directly.
9191

92-
The abstract method returns an iterable of no items.
92+
The abstract method raises :exc:`FileNotFoundError`.
93+
94+
.. versionchanged:: 3.10
95+
The abstract method changed from returning an empty iterable
96+
to raising :exc:`FileNotFoundError`.
9397

9498

9599
.. class:: Traversable

0 commit comments

Comments
 (0)