From 3793f7e72a778e2d62c6a3b3f4f7720e6dc6914c Mon Sep 17 00:00:00 2001 From: Martin Bernstorff Date: Fri, 7 Feb 2025 10:47:15 +0100 Subject: [PATCH] update arr.py --- iterpy/arr.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iterpy/arr.py b/iterpy/arr.py index 0729f2b..e9d44a1 100644 --- a/iterpy/arr.py +++ b/iterpy/arr.py @@ -3,11 +3,11 @@ from itertools import islice from typing import TYPE_CHECKING, Generic, Sequence, SupportsIndex, TypeVar, overload -from iterpy.iter import Iter - if TYPE_CHECKING: from collections.abc import Callable, Iterable, Iterator + from iterpy.iter import Iter + T = TypeVar("T") S = TypeVar("S") @@ -132,7 +132,7 @@ def zip(self, other: Arr[S]) -> Arr[tuple[T, S]]: return Arr(zip(self, other)) def chain(self, other: Arr[T]) -> Arr[T]: - return self.lazy().chain(Iter(other)).collect() + return self.lazy().chain(other.lazy()).collect() ############################################################ # Auto-generated overloads for flatten #