Expose `Actor` at pkg level, adjust debug type annots

we_bein_all_matchy
Tyler Goodlet 2022-08-29 15:13:16 -04:00
parent 7548dba8f2
commit 9aef03772a
2 changed files with 4 additions and 2 deletions

View File

@ -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',

View File

@ -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: