From 7c737754741646179b6cdea99b541bbbe3446739 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 20 Jul 2020 16:08:03 -0400 Subject: [PATCH] Force keyword only args in actor spawn methods --- tractor/_trionics.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tractor/_trionics.py b/tractor/_trionics.py index cff54fe..82d2653 100644 --- a/tractor/_trionics.py +++ b/tractor/_trionics.py @@ -47,6 +47,7 @@ class ActorNursery: async def start_actor( self, name: str, + *, bind_addr: Tuple[str, int] = ('127.0.0.1', 0), statespace: Optional[Dict[str, Any]] = None, rpc_module_paths: List[str] = None, @@ -87,6 +88,7 @@ class ActorNursery: self, name: str, fn: typing.Callable, + *, bind_addr: Tuple[str, int] = ('127.0.0.1', 0), rpc_module_paths: Optional[List[str]] = None, statespace: Dict[str, Any] = None,