Skip to content

Commit

Permalink
add __all__ to explicitly declare exports of beangulp
Browse files Browse the repository at this point in the history
Without this, mypy will complain when importing Importer from beangulp.
  • Loading branch information
yagebu committed Jan 3, 2025
1 parent d64fb7d commit 386859c
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion beangulp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,28 @@
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
from beangulp import utils
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()
Expand Down

0 comments on commit 386859c

Please sign in to comment.