From 294d4df2862ea4aa14245ead6532ab5ff891c099 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Fri, 7 Dec 2018 09:45:44 +0100 Subject: [PATCH] __init__: Better support introspection PEP8: """ To better support introspection, modules should explicitly declare the names in their public API using the __all__ attribute. """ reported by flake8: ./kas/__init__.py:26:1: F401 '.__version__.__version__' imported but unused ./kas/__init__.py:27:1: F401 '.__version__.__file_version__' imported but unused ./kas/__init__.py:27:1: F401 '.__version__.__compatible_file_version__' imported but unused ./kas/__init__.py:28:1: F401 '.configschema.CONFIGSCHEMA' imported but unused Signed-off-by: Daniel Wagner --- kas/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kas/__init__.py b/kas/__init__.py index 2d8dd23..9e8c81c 100644 --- a/kas/__init__.py +++ b/kas/__init__.py @@ -29,3 +29,6 @@ from .configschema import CONFIGSCHEMA __license__ = 'MIT' __copyright__ = 'Copyright (c) Siemens AG, 2017-2018' + +__all__ = ['__version__', '__file_version__', + '__compatible_file_version__', 'CONFIGSCHEMA']