]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-113238: add Anchor to importlib.resources (#113801)
authorMike Zimin <122507876+mikeziminio@users.noreply.github.com>
Tue, 16 Jan 2024 10:55:59 +0000 (13:55 +0300)
committerGitHub <noreply@github.com>
Tue, 16 Jan 2024 10:55:59 +0000 (10:55 +0000)
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 e6b60c18caa05288676c98d09a9db1ea2be2731d..ae83cd07c4d4fbc79832524987c2df87f535b5ba 100644 (file)
@@ -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 (file)
index 0000000..51b4d14
--- /dev/null
@@ -0,0 +1 @@
+Add ``Anchor`` to ``importlib.resources`` (in order for the code to comply with the documentation)