gh-138044: Fix importlib.resources.files deprecation docs (#139632)

This commit is contained in:
sobolevn 2025-10-12 01:52:01 +03:00 committed by GitHub
parent 35e9d41a9c
commit d6dd64ac65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 2 deletions

View File

@ -72,8 +72,12 @@ for example, a package and its resources can be imported from a zip file using
.. versionadded:: 3.9
.. deprecated-removed:: 3.12 3.15
*package* parameter was renamed to *anchor*. *anchor* can now be a
.. versionchanged:: 3.12
*package* parameter was renamed to *anchor*.
*package* was still accepted, but deprecated.
.. versionchanged:: 3.15
*package* parameter was fully removed. *anchor* can now be a
non-package module and if omitted will default to the caller's module.
*package* is no longer accepted since Python 3.15. Consider passing the
anchor positionally or using ``importlib_resources >= 5.10`` for a

View File

@ -696,6 +696,14 @@ http.server
(Contributed by Bénédikt Tran in :gh:`133810`.)
importlib.resources
-------------------
* Removed deprecated ``package`` parameter
from :func:`importlib.resources.files` function.
(Contributed by Semyon Moroz in :gh:`138044`)
pathlib
-------