From 910613638ae0b707dab09e39901185257fc4fd6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filipe=20La=C3=ADns?= Date: Tue, 18 May 2021 00:19:28 +0100 Subject: [PATCH] _common: add type hint to files() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #223 Signed-off-by: Filipe LaĆ­ns --- importlib_resources/_common.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/importlib_resources/_common.py b/importlib_resources/_common.py index e140def7..37187482 100644 --- a/importlib_resources/_common.py +++ b/importlib_resources/_common.py @@ -7,7 +7,7 @@ import importlib from typing import Union, Any, Optional -from .abc import ResourceReader +from .abc import ResourceReader, Traversable from ._compat import wrap_spec @@ -15,6 +15,7 @@ def files(package): + # type: (Package) -> Traversable """ Get a Traversable resource from a package """