Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 31e83e1

Browse filesBrowse files
authored
Merge pull request #224 from FFY00/files-type-hint
_common: add type hint to files()
2 parents a8c2ead + 9106136 commit 31e83e1
Copy full SHA for 31e83e1

File tree

1 file changed

+2
-1
lines changed
Filter options

1 file changed

+2
-1
lines changed

‎importlib_resources/_common.py

Copy file name to clipboardExpand all lines: importlib_resources/_common.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77
import importlib
88

99
from typing import Union, Any, Optional
10-
from .abc import ResourceReader
10+
from .abc import ResourceReader, Traversable
1111

1212
from ._compat import wrap_spec
1313

1414
Package = Union[types.ModuleType, str]
1515

1616

1717
def files(package):
18+
# type: (Package) -> Traversable
1819
"""
1920
Get a Traversable resource from a package
2021
"""

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.