From 1a520352f8753205c7d50128c842d42dfd06931c Mon Sep 17 00:00:00 2001 From: Evgeniy Blinov Date: Wed, 20 Dec 2023 01:52:51 +0300 Subject: [PATCH] type hints --- cantok/tokens/abstract_token.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cantok/tokens/abstract_token.py b/cantok/tokens/abstract_token.py index c0fbdb4..dc0805b 100644 --- a/cantok/tokens/abstract_token.py +++ b/cantok/tokens/abstract_token.py @@ -21,15 +21,14 @@ class CancellationReport: cause: CancelCause from_token: 'AbstractToken' - class AngryAwaitable(Coroutine): def __await__(self): yield self - def send(self, value): + def send(self, value: Any) -> None: raise SynchronousWaitingError() - def throw(self, value): + def throw(self, value: Any) -> None: pass