Skip to content

Commit

Permalink
Fix typing issue with overload
Browse files Browse the repository at this point in the history
Make main function more generic
  • Loading branch information
dbrattli committed Feb 14, 2022
1 parent 34840fe commit abfd6bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rx/operators/__init__.py
Expand Up @@ -2370,7 +2370,7 @@ def reduce(

def reduce(
accumulator: Accumulator[_TState, _T], seed: Union[_TState, Type[NotSet]] = NotSet
) -> Callable[[Observable[_T]], Observable[Union[_T, _TState]]]:
) -> Callable[[Observable[_T]], Observable[Any]]:
"""The reduce operator.
Applies an accumulator function over an observable sequence,
Expand Down

0 comments on commit abfd6bb

Please sign in to comment.