Skip to content

Commit

Permalink
Support no arg to Context.started() like trio
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed May 31, 2021
1 parent df420fc commit 98a69f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tractor/_streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ async def open_stream(
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(
Expand Down

0 comments on commit 98a69f0

Please sign in to comment.