From 3209ccec86bc4dce93ca86fe7303813c28676d0c Mon Sep 17 00:00:00 2001 From: Mike Zimin <122507876+mikeziminio@users.noreply.github.com> Date: Tue, 16 Jan 2024 13:55:59 +0300 Subject: [PATCH] gh-113238: add Anchor to importlib.resources (python/cpython#113801) Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> --- importlib_resources/__init__.py | 2 ++ newsfragments/+.feature.rst | 1 + 2 files changed, 3 insertions(+) create mode 100644 newsfragments/+.feature.rst diff --git a/importlib_resources/__init__.py b/importlib_resources/__init__.py index e6b60c1..ae83cd0 100644 --- a/importlib_resources/__init__.py +++ b/importlib_resources/__init__.py @@ -4,6 +4,7 @@ as_file, files, Package, + Anchor, ) from .abc import ResourceReader @@ -11,6 +12,7 @@ __all__ = [ 'Package', + 'Anchor', 'ResourceReader', 'as_file', 'files', diff --git a/newsfragments/+.feature.rst b/newsfragments/+.feature.rst new file mode 100644 index 0000000..51b4d14 --- /dev/null +++ b/newsfragments/+.feature.rst @@ -0,0 +1 @@ +Add ``Anchor`` to ``importlib.resources`` (in order for the code to comply with the documentation)