Skip to content

Commit

Permalink
Allow import "CURRENT_ENTRYPOINT"
Browse files Browse the repository at this point in the history
  • Loading branch information
mosquito committed Jul 24, 2023
1 parent 34b5768 commit bd8131d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion aiomisc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from .circuit_breaker import CircuitBreaker, CircuitBroken, cutout
from .context import Context, get_context
from .counters import Statistic, get_statistics
from .entrypoint import Entrypoint, entrypoint, run
from .entrypoint import CURRENT_ENTRYPOINT, Entrypoint, entrypoint, run
from .iterator_wrapper import IteratorWrapper
from .periodic import PeriodicCallback
from .plugins import plugins
Expand All @@ -30,6 +30,7 @@


__all__ = (
"CURRENT_ENTRYPOINT",
"CircuitBreaker",
"CircuitBroken",
"Context",
Expand Down
4 changes: 3 additions & 1 deletion aiomisc/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,4 +450,6 @@ def run(
return loop.run_until_complete(coro)


__all__ = ("entrypoint", "Entrypoint", "get_context", "run")
__all__ = (
"CURRENT_ENTRYPOINT", "Entrypoint", "entrypoint", "get_context", "run",
)

0 comments on commit bd8131d

Please sign in to comment.