Skip to content

Commit

Permalink
fix(type): fix AsyncGenFunc type hints for ASyncGeneratorFunctionDesc…
Browse files Browse the repository at this point in the history
…riptor (#226)
  • Loading branch information
BobTheBuidler authored Apr 24, 2024
1 parent 09ce6bf commit 84aeedf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion a_sync/iter.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def __iter__(self) -> Iterator[T]:
yield from ASyncIterator(self.__aiter__())
__slots__ = "__wrapped__",

AsyncGenFunc = Callable[P, Union[AsyncGenerator[Any, None, T], AsyncIterator[T]]]
AsyncGenFunc = Callable[P, Union[AsyncGenerator[T, None], AsyncIterator[T]]]

class ASyncIterator(_AwaitableAsyncIterableMixin[T], Iterator[T]):
"""
Expand Down

0 comments on commit 84aeedf

Please sign in to comment.