-
-
Notifications
You must be signed in to change notification settings - Fork 31k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
0 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
Misc/NEWS.d/next/Library/2022-12-29-11-45-22.gh-issue-97930.hrtmJe.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
``importlib.resources.files`` now accepts a module as an anchor instead of | ||
only accepting packages. If a module is passed, resources are resolved | ||
adjacent to that module (in the same package or at the package root). The | ||
parameter was renamed from ``package`` to ``anchor`` with a compatibility | ||
shim for those passing by keyword. Additionally, the new ``anchor`` | ||
parameter is now optional and will default to the caller's module. |