Skip to content

Commit

Permalink
type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
pomponchik committed Jan 31, 2024
1 parent 62266c8 commit 34d3218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cantok/tokens/abstract_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def close(self) -> None:
self.coroutine.close()

@staticmethod
def sync_wait(step: Union[int, float], flags: Dict[str, bool], token_for_wait: 'AbstractToken', token_for_check: 'AbstractToken', wrapped_coroutine: Coroutine) -> None:
def sync_wait(step: Union[int, float], flags: Dict[str, bool], token_for_wait: 'AbstractToken', token_for_check: 'AbstractToken', wrapped_coroutine: Coroutine) -> None: # type: ignore[type-arg]
if not flags.get('used', False):
wrapped_coroutine.close()

Expand Down

0 comments on commit 34d3218

Please sign in to comment.