Skip to content

Commit

Permalink
re-export symbols that scenario 6 uses
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaqq committed Sep 2, 2024
1 parent bd753a1 commit 4a93b38
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ops/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4a93b38

Please sign in to comment.