summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Zimin <122507876+mikeziminio@users.noreply.github.com>2024-01-16 10:55:59 (GMT)
committerGitHub <noreply@github.com>2024-01-16 10:55:59 (GMT)
commitc85c0026a64c2a902138feeb73a9c66af1af31e0 (patch)
tree7ffe2964747011bfa5306476fdb4b6e114eb04f2
parent04fabe22dd98b4d87f672254b743fbadd5206352 (diff)
downloadcpython-c85c0026a64c2a902138feeb73a9c66af1af31e0.zip
cpython-c85c0026a64c2a902138feeb73a9c66af1af31e0.tar.gz
cpython-c85c0026a64c2a902138feeb73a9c66af1af31e0.tar.bz2
gh-113238: add Anchor to importlib.resources (#113801)
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
-rw-r--r--Lib/importlib/resources/__init__.py2
-rw-r--r--Misc/NEWS.d/next/Library/2024-01-07-23-31-44.gh-issue-113238.wFWBfW.rst1
2 files changed, 3 insertions, 0 deletions
diff --git a/Lib/importlib/resources/__init__.py b/Lib/importlib/resources/__init__.py
index e6b60c1..ae83cd0 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 0000000..51b4d14
--- /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)