Skip to content

Commit d9775bd

Browse files
committed
gh-138044: Fix importlib.resources.files deprecation docs
1 parent 3195da0 commit d9775bd

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

Doc/library/importlib.resources.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,12 @@ for example, a package and its resources can be imported from a zip file using
7272

7373
.. versionadded:: 3.9
7474

75-
.. deprecated-removed:: 3.12 3.15
76-
*package* parameter was renamed to *anchor*. *anchor* can now be a
75+
.. versionchanged:: 3.12
76+
*package* parameter was renamed to *anchor*.
77+
*package* was still accepted, but deprecated.
78+
79+
.. versionchanged:: 3.15
80+
*package* parameter was fully removed. *anchor* can now be a
7781
non-package module and if omitted will default to the caller's module.
7882
*package* is no longer accepted since Python 3.15. Consider passing the
7983
anchor positionally or using ``importlib_resources >= 5.10`` for a

Doc/whatsnew/3.15.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,14 @@ http.server
696696
(Contributed by Bénédikt Tran in :gh:`133810`.)
697697

698698

699+
importlib.resources
700+
-------------------
701+
702+
* Removed deprecated ``package`` parameter
703+
from :func:`importlib.resources.files` function.
704+
(Contributed by Semyon Moroz in :gh:`138044`)
705+
706+
699707
pathlib
700708
-------
701709

0 commit comments

Comments
 (0)