From 4a93b386ed5fa587e54db4a49d4bed449cec3934 Mon Sep 17 00:00:00 2001 From: Dima Tisnek Date: Mon, 2 Sep 2024 14:06:59 +0900 Subject: [PATCH] re-export symbols that scenario 6 uses --- ops/main.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ops/main.py b/ops/main.py index a4ccfdbe1..2ae1aebd1 100644 --- a/ops/main.py +++ b/ops/main.py @@ -20,6 +20,14 @@ from . import _main +# Re-export specific set of symbols that Scenario 6 imports from ops.main +from ._main import ( # noqa: F401 + CHARM_STATE_FILE, # type: ignore[reportUnusedImport] + _Dispatcher, # type: ignore[reportUnusedImport] + _get_event_args, # type: ignore[reportUnusedImport] + logger, # type: ignore[reportUnusedImport] +) + def main(charm_class: Type[ops.charm.CharmBase], use_juju_for_storage: Optional[bool] = None): """Legacy entrypoint to set up the charm and dispatch the observed event.