Skip to content

Commit

Permalink
Merge pull request #224 from FFY00/files-type-hint
Browse files Browse the repository at this point in the history
_common: add type hint to files()
  • Loading branch information
jaraco authored May 21, 2021
2 parents a8c2ead + 9106136 commit 31e83e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion importlib_resources/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
import importlib

from typing import Union, Any, Optional
from .abc import ResourceReader
from .abc import ResourceReader, Traversable

from ._compat import wrap_spec

Package = Union[types.ModuleType, str]


def files(package):
# type: (Package) -> Traversable
"""
Get a Traversable resource from a package
"""
Expand Down

0 comments on commit 31e83e1

Please sign in to comment.