diff --git a/Lib/importlib/resources/__init__.py b/Lib/importlib/resources/__init__.py index 34e3a9950cc557..a7a9ccb368f478 100644 --- a/Lib/importlib/resources/__init__.py +++ b/Lib/importlib/resources/__init__.py @@ -4,6 +4,7 @@ as_file, files, Package, + Anchor, ) from ._legacy import ( @@ -22,6 +23,7 @@ __all__ = [ 'Package', + 'Anchor', 'Resource', 'ResourceReader', 'as_file', diff --git a/Misc/NEWS.d/next/Library/2024-01-07-22-00-37.gh-issue-113238.79lx9c.rst b/Misc/NEWS.d/next/Library/2024-01-07-22-00-37.gh-issue-113238.79lx9c.rst new file mode 100644 index 00000000000000..9b22a2091cba21 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2024-01-07-22-00-37.gh-issue-113238.79lx9c.rst @@ -0,0 +1 @@ +add ``Anchor`` to ``importlib.resources`` (in order for the code to comply with the documentation)