From 290370fa6f693653eb7137bcfad9b3979eae352e Mon Sep 17 00:00:00 2001 From: Evgeniy Blinov Date: Thu, 8 Aug 2024 19:11:19 +0300 Subject: [PATCH] fucking stupid typing --- cantok/tokens/abstract/abstract_token.py | 2 +- cantok/tokens/timeout_token.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cantok/tokens/abstract/abstract_token.py b/cantok/tokens/abstract/abstract_token.py index 55e594c..fc892f6 100644 --- a/cantok/tokens/abstract/abstract_token.py +++ b/cantok/tokens/abstract/abstract_token.py @@ -80,7 +80,7 @@ def __add__(self, item: 'AbstractToken') -> 'AbstractToken': def __bool__(self) -> bool: return self.keep_on() - def filter_tokens(self, tokens: IterableWithTokens) -> List['AbstractToken']: + def filter_tokens(self, tokens: IterableWithTokens) -> List['AbstractToken']: # type: ignore[type-arg] from cantok import DefaultToken result: List[AbstractToken] = [] diff --git a/cantok/tokens/timeout_token.py b/cantok/tokens/timeout_token.py index ef8194a..7664411 100644 --- a/cantok/tokens/timeout_token.py +++ b/cantok/tokens/timeout_token.py @@ -35,7 +35,7 @@ def function() -> bool: super().__init__(function, *tokens, cancelled=cancelled) - def filter_tokens(self, tokens: IterableWithTokens) -> List[AbstractToken]: + def filter_tokens(self, tokens: IterableWithTokens) -> List[AbstractToken]: # type: ignore[type-arg] result: List[AbstractToken] = [] for token in tokens: