From 9aef03772af37dbdd55d93176095b8993b434385 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 29 Aug 2022 15:13:16 -0400 Subject: [PATCH] Expose `Actor` at pkg level, adjust debug type annots --- tractor/__init__.py | 2 ++ tractor/_debug.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tractor/__init__.py b/tractor/__init__.py index 85d759c..cd7efea 100644 --- a/tractor/__init__.py +++ b/tractor/__init__.py @@ -46,9 +46,11 @@ from ._debug import breakpoint, post_mortem from . import msg from ._root import run, run_daemon, open_root_actor from ._portal import Portal +from ._runtime import Actor __all__ = [ + 'Actor', 'Channel', 'Context', 'ContextCancelled', diff --git a/tractor/_debug.py b/tractor/_debug.py index 9f8a704..4e55f17 100644 --- a/tractor/_debug.py +++ b/tractor/_debug.py @@ -643,7 +643,7 @@ def shield_sigint( def _set_trace( - actor: Optional[tractor._actor.Actor] = None, + actor: Optional[tractor.Actor] = None, pdb: Optional[MultiActorPdb] = None, ): __tracebackhide__ = True @@ -676,7 +676,7 @@ breakpoint = partial( def _post_mortem( - actor: tractor._actor.Actor, + actor: tractor.Actor, pdb: MultiActorPdb, ) -> None: