From 4c712a8e4799fc7e8dd6af200ecf02765cd281b6 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(