mirror of
https://github.com/python/cpython.git
synced 2025-08-02 08:02:56 +00:00
[3.10] bpo-43643: Sync with python/importlib_resources@c17a610aad. (GH-26284) (GH-26286)
* [bpo-43643](): Sync with python/importlib_resources@c17a610aad.
* Sync with python/importlib_resources@89fd5e961a.
(cherry picked from commit 875b3d84b3
)
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Automerge-Triggered-By: GH:jaraco
This commit is contained in:
parent
1886b8496b
commit
fdb65e399e
4 changed files with 10 additions and 1 deletions
|
@ -7,7 +7,7 @@ import types
|
|||
import importlib
|
||||
|
||||
from typing import Union, Any, Optional
|
||||
from .abc import ResourceReader
|
||||
from .abc import ResourceReader, Traversable
|
||||
|
||||
from ._adapters import wrap_spec
|
||||
|
||||
|
@ -15,6 +15,7 @@ Package = Union[types.ModuleType, str]
|
|||
|
||||
|
||||
def files(package):
|
||||
# type: (Package) -> Traversable
|
||||
"""
|
||||
Get a Traversable resource from a package
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue