From: Mike Zimin <122507876+mikeziminio@users.noreply.github.com> Date: Tue, 16 Jan 2024 10:55:59 +0000 (+0300) Subject: gh-113238: add Anchor to importlib.resources (#113801) X-Git-Tag: v3.13.0a3~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c85c0026a64c2a902138feeb73a9c66af1af31e0;p=thirdparty%2FPython%2Fcpython.git gh-113238: add Anchor to importlib.resources (#113801) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> --- diff --git a/Lib/importlib/resources/__init__.py b/Lib/importlib/resources/__init__.py index e6b60c18caa0..ae83cd07c4d4 100644 --- a/Lib/importlib/resources/__init__.py +++ b/Lib/importlib/resources/__init__.py @@ -4,6 +4,7 @@ from ._common import ( as_file, files, Package, + Anchor, ) from .abc import ResourceReader @@ -11,6 +12,7 @@ from .abc import ResourceReader __all__ = [ 'Package', + 'Anchor', 'ResourceReader', 'as_file', 'files', 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 000000000000..51b4d144a94e --- /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)