From 734af170e16ab3bcefc15dbfc863dc3e78a810e0 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Wed, 16 May 2018 15:30:43 +0300 Subject: [PATCH] bpo-33537: Add __all__ in importlib.resources. --- Lib/importlib/resources.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Lib/importlib/resources.py b/Lib/importlib/resources.py index 4d70186c1a43b7e..03d5852e047bdef 100644 --- a/Lib/importlib/resources.py +++ b/Lib/importlib/resources.py @@ -15,6 +15,10 @@ from zipimport import ZipImportError +__all__ = ['Package', 'Resource', + 'open_binary', 'open_text', 'read_binary', 'read_text', + 'path', 'is_resource', 'contents'] + Package = Union[str, ModuleType] Resource = Union[str, os.PathLike]