Skip to content

Commit 6b16fcf

Browse files
committed
Formatting
1 parent 1315af1 commit 6b16fcf

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

reactivex/observable/mixins/combination.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,7 @@ def merge_all(self) -> Observable[Any]:
347347
)
348348
return self._as_observable().pipe(op)
349349

350-
def zip_with_iterable(
351-
self, second: Iterable[_T2]
352-
) -> Observable[tuple[_T, _T2]]:
350+
def zip_with_iterable(self, second: Iterable[_T2]) -> Observable[tuple[_T, _T2]]:
353351
"""Zip with iterable.
354352
355353
Merges the specified observable sequence and iterable into one observable

reactivex/observable/mixins/filtering.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,8 @@ def single_or_default_async(
702702
or the default value if empty.
703703
704704
See Also:
705-
- :func:`single_or_default_async <reactivex.operators.single_or_default_async>`
705+
- :func:`single_or_default_async \
706+
<reactivex.operators.single_or_default_async>`
706707
- :meth:`single_or_default`
707708
- :meth:`single`
708709
"""
@@ -834,8 +835,8 @@ def last_or_default(
834835
if predicate is None:
835836
return self._as_observable().pipe(ops.last_or_default(default_value))
836837

837-
op: Callable[[Observable[Any]], Observable[Any]] = (
838-
ops.last_or_default(default_value, predicate)
838+
op: Callable[[Observable[Any]], Observable[Any]] = ops.last_or_default(
839+
default_value, predicate
839840
)
840841
return self._as_observable().pipe(op)
841842

reactivex/observable/mixins/time_based.py

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ def throttle_first(
133133
"""
134134
from reactivex import operators as ops
135135

136-
return self._as_observable().pipe(ops.throttle_first(window_duration, scheduler))
136+
return self._as_observable().pipe(
137+
ops.throttle_first(window_duration, scheduler)
138+
)
137139

138140
def throttle_with_mapper(
139141
self,
@@ -150,10 +152,13 @@ def throttle_with_mapper(
150152
151153
Equivalent pipe style:
152154
>>> from reactivex import operators as ops
153-
>>> result = source.pipe(ops.throttle_with_mapper(lambda x: rx.timer(x * 0.1)))
155+
>>> result = source.pipe(
156+
... ops.throttle_with_mapper(lambda x: rx.timer(x * 0.1))
157+
... )
154158
155159
Args:
156-
throttle_duration_mapper: Function to compute throttle duration for each item.
160+
throttle_duration_mapper: Function to compute throttle duration
161+
for each item.
157162
158163
Returns:
159164
The throttled sequence.
@@ -165,7 +170,9 @@ def throttle_with_mapper(
165170
"""
166171
from reactivex import operators as ops
167172

168-
return self._as_observable().pipe(ops.throttle_with_mapper(throttle_duration_mapper))
173+
return self._as_observable().pipe(
174+
ops.throttle_with_mapper(throttle_duration_mapper)
175+
)
169176

170177
def throttle_with_timeout(
171178
self,

0 commit comments

Comments
 (0)