Skip to content

Commit

Permalink
fix(mypy): fix type hint for _TaskMappingView.__await__ (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored May 9, 2024
1 parent 35adf53 commit f9b133c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion a_sync/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ def __init__(self, view: Iterable[T], task_mapping: TaskMapping[K, V], pop: bool
self._pop = True
def __iter__(self) -> Iterator[T]:
return iter(self.__view__)
def __await__(self) -> Generator[Any, None, T]:
def __await__(self) -> Generator[Any, None, List[T]]:
return self._await().__await__()
def __len__(self) -> int:
return len(self.__view__)
Expand Down

0 comments on commit f9b133c

Please sign in to comment.