Skip to content

Commit

Permalink
type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
pomponchik committed Dec 19, 2023
1 parent 0db7802 commit 1a52035
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cantok/tokens/abstract_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 1a52035

Please sign in to comment.