Skip to content

Commit 7db03a7

Browse files
committed
make .source recursive
1 parent 50e2fa7 commit 7db03a7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

streamable/stream.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -607,9 +607,12 @@ class DownStream(Stream[U], Generic[T, U]):
607607
"""
608608

609609
def __init__(self, upstream: Stream[T]) -> None:
610-
Stream.__init__(self, upstream.source)
611610
self._upstream: Stream[T] = upstream
612611

612+
@property
613+
def source(self) -> Union[Iterable, Callable[[], Iterable]]:
614+
return self._upstream.source
615+
613616
@property
614617
def upstream(self) -> Stream[T]:
615618
"""

0 commit comments

Comments
 (0)