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