From 8017e55b85e5da294561cd540275e248d80eb9a0 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 25 May 2021 09:19:07 -0400 Subject: [PATCH] Support no arg to `Context.started()` like trio --- tractor/_streaming.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tractor/_streaming.py b/tractor/_streaming.py index 085d994..fb5f8a8 100644 --- a/tractor/_streaming.py +++ b/tractor/_streaming.py @@ -339,7 +339,7 @@ class Context: if self._portal: self._portal._streams.remove(rchan) - async def started(self, value: Any) -> None: + async def started(self, value: Optional[Any] = None) -> None: if self._portal: raise RuntimeError(