From 6cd196e6b9b5ad39117569f56af50c4b814222e3 Mon Sep 17 00:00:00 2001 From: Mike Zimin Date: Mon, 8 Jan 2024 03:19:50 +0400 Subject: [PATCH 1/2] gh-113238: add Anchor to importlib.resources --- Lib/importlib/resources/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/importlib/resources/__init__.py b/Lib/importlib/resources/__init__.py index e6b60c18caa052..ae83cd07c4d4fb 100644 --- a/Lib/importlib/resources/__init__.py +++ b/Lib/importlib/resources/__init__.py @@ -4,6 +4,7 @@ as_file, files, Package, + Anchor, ) from .abc import ResourceReader @@ -11,6 +12,7 @@ __all__ = [ 'Package', + 'Anchor', 'ResourceReader', 'as_file', 'files', From a666076bbd39a50eef372f4ed82d02e4de476f31 Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Sun, 7 Jan 2024 23:31:45 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../next/Library/2024-01-07-23-31-44.gh-issue-113238.wFWBfW.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Library/2024-01-07-23-31-44.gh-issue-113238.wFWBfW.rst diff --git a/Misc/NEWS.d/next/Library/2024-01-07-23-31-44.gh-issue-113238.wFWBfW.rst b/Misc/NEWS.d/next/Library/2024-01-07-23-31-44.gh-issue-113238.wFWBfW.rst new file mode 100644 index 00000000000000..51b4d144a94e6d --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-01-07-23-31-44.gh-issue-113238.wFWBfW.rst @@ -0,0 +1 @@ +Add ``Anchor`` to ``importlib.resources`` (in order for the code to comply with the documentation)