]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-113238: add Anchor to importlib.resources (GH-113801) (#130499)
authorHugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Sat, 8 Mar 2025 16:27:34 +0000 (18:27 +0200)
committerGitHub <noreply@github.com>
Sat, 8 Mar 2025 16:27:34 +0000 (11:27 -0500)
(cherry picked from commit c85c0026a64c2a902138feeb73a9c66af1af31e0)

Co-authored-by: Mike Zimin <122507876+mikeziminio@users.noreply.github.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Lib/importlib/resources/__init__.py
Misc/NEWS.d/next/Library/2024-01-07-23-31-44.gh-issue-113238.wFWBfW.rst [new file with mode: 0644]

index 34e3a9950cc557879af8d797f9382b18a870fb56..a7a9ccb368f4785060d956684fac1765c337936a 100644 (file)
@@ -4,6 +4,7 @@ from ._common import (
     as_file,
     files,
     Package,
+    Anchor,
 )
 
 from ._legacy import (
@@ -22,6 +23,7 @@ from .abc import ResourceReader
 
 __all__ = [
     'Package',
+    'Anchor',
     'Resource',
     'ResourceReader',
     'as_file',
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 (file)
index 0000000..51b4d14
--- /dev/null
@@ -0,0 +1 @@
+Add ``Anchor`` to ``importlib.resources`` (in order for the code to comply with the documentation)