File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
returns/_internal/pipeline Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ See [0Ver](https://0ver.org/).
12
12
13
13
- Makes ` _Nothing ` a singleton
14
14
- Fixes typos in documentation
15
-
15
+ - Refactor ` flow ` function
16
16
17
17
## 0.15.0 aka The initial HKT release
18
18
Original file line number Diff line number Diff line change 1
1
from functools import reduce
2
2
from typing import TypeVar
3
3
4
- from returns .functions import compose
5
4
6
5
_InstanceType = TypeVar ('_InstanceType' )
7
6
_PipelineStepType = TypeVar ('_PipelineStepType' )
@@ -49,4 +48,8 @@ def flow(
49
48
50
49
Requires our :ref:`mypy plugin <mypy-plugins>`.
51
50
"""
52
- return reduce (compose , functions )(instance ) # type: ignore
51
+ return reduce ( # type: ignore
52
+ lambda composed , function : function (composed ),
53
+ functions ,
54
+ instance ,
55
+ )
You can’t perform that action at this time.
0 commit comments