Skip to content

Commit 365d07e

Browse files
committed
Fix type hint issue in aiter
1 parent c72ca2c commit 365d07e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elasticsearch/_async/helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def aiter(x: Union[Iterable[T], AsyncIterable[T]]) -> AsyncIterator[T]:
133133
if hasattr(x, "__anext__"):
134134
return x # type: ignore[return-value]
135135
elif hasattr(x, "__aiter__"):
136-
return x.__aiter__()
136+
return x.__aiter__() # type: ignore[union-attr]
137137

138138
async def f() -> AsyncIterable[T]:
139139
nonlocal x

0 commit comments

Comments
 (0)