Skip to content

Commit 702b770

Browse files
Merge pull request #174 from maxfischer2781/typefix/action-790
Fix type checker disagreement (GH action 790)
2 parents aa76c1d + d3e1508 commit 702b770

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

asyncstdlib/asynctools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class _BorrowedAsyncIterator(AsyncGenerator[T, S]):
3535
__slots__ = "__wrapped__", "__anext__", "asend", "athrow", "_wrapper"
3636

3737
# Type checker does not understand `__slot__` definitions
38-
__anext__: Callable[[Any], Coroutine[Any, Any, T]]
38+
__anext__: Callable[..., Coroutine[Any, Any, T]]
3939
asend: Any
4040
athrow: Any
4141

@@ -49,7 +49,7 @@ def __init__(self, iterator: Union[AsyncIterator[T], AsyncGenerator[T, S]]):
4949
# An async *iterator* (e.g. `async def: yield`) must return
5050
# itself from __aiter__. If we do not shadow this then
5151
# running aiter(self).aclose closes the underlying iterator.
52-
self.__anext__ = self._wrapper.__anext__ # type: ignore
52+
self.__anext__ = self._wrapper.__anext__
5353
if hasattr(iterator, "asend"):
5454
self.asend = (
5555
iterator.asend # pyright: ignore[reportUnknownMemberType,reportAttributeAccessIssue]

0 commit comments

Comments
 (0)