From 591d63a87be2645effea047dafa0e46e96106d24 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Thu, 8 Jan 2026 17:28:35 +0000 Subject: [PATCH] GH-143513 Clarify historic behaviour of importlib ResourceReader --- Doc/library/importlib.resources.abc.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Doc/library/importlib.resources.abc.rst b/Doc/library/importlib.resources.abc.rst index 45979c5691270a..5bfbb0770ca6b7 100644 --- a/Doc/library/importlib.resources.abc.rst +++ b/Doc/library/importlib.resources.abc.rst @@ -89,7 +89,11 @@ the file system then those subdirectory names can be used directly. - The abstract method returns an iterable of no items. + The abstract method raises :exc:`FileNotFoundError`. + + .. versionchanged:: 3.10 + The abstract method changed from returning an empty iterable + to raising :exc:`FileNotFoundError`. .. class:: Traversable