From 386859ccc2c5127544713b3791285f4a94adfbb9 Mon Sep 17 00:00:00 2001 From: Jakob Schnitzer Date: Thu, 2 Jan 2025 14:17:34 +0100 Subject: [PATCH] add __all__ to explicitly declare exports of beangulp Without this, mypy will complain when importing Importer from beangulp. --- beangulp/__init__.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/beangulp/__init__.py b/beangulp/__init__.py index 00b0216..18d5afa 100644 --- a/beangulp/__init__.py +++ b/beangulp/__init__.py @@ -18,7 +18,7 @@ from beancount import loader from beangulp import archive -from beangulp import cache # noqa: F401 +from beangulp import cache from beangulp import exceptions from beangulp import extract from beangulp import identify @@ -26,6 +26,20 @@ from beangulp.importer import Importer, ImporterProtocol, Adapter +__all__ = [ + "Adapter", + "Importer", + "ImporterProtocol", + "Ingest", + "archive", + "cache", + "exceptions", + "extract", + "identify", + "utils", +] + + def _walk(file_or_dirs, log): """Convenience wrapper around beangulp.utils.walk()