Skip to content

Commit

Permalink
fucking stupid typing
Browse files Browse the repository at this point in the history
  • Loading branch information
pomponchik committed Aug 8, 2024
1 parent e65efdc commit 290370f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cantok/tokens/abstract/abstract_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -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] = []
Expand Down
2 changes: 1 addition & 1 deletion cantok/tokens/timeout_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 290370f

Please sign in to comment.