From d0eacc3fd6cd62264301b1a60adf0971bd723e45 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 27 Apr 2021 12:07:16 -0400 Subject: [PATCH] Appease mypy --- tractor/_actor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tractor/_actor.py b/tractor/_actor.py index 3823455..6333091 100644 --- a/tractor/_actor.py +++ b/tractor/_actor.py @@ -868,6 +868,7 @@ class Actor: Schedules `.cancel()` to be run immediately just like when cancelled by the parent. """ + assert self._service_n self._service_n.start_soon(self.cancel) async def cancel(self) -> bool: