File: pipe.pyi

package info (click to toggle)
python-returns 0.26.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,652 kB
  • sloc: python: 11,000; makefile: 18
file content (126 lines) | stat: -rw-r--r-- 4,059 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
from typing import Generic, TypeVar

_InstanceType = TypeVar('_InstanceType')
_ReturnType = TypeVar('_ReturnType')

_PipelineStepType1 = TypeVar('_PipelineStepType1')
_PipelineStepType2 = TypeVar('_PipelineStepType2')
_PipelineStepType3 = TypeVar('_PipelineStepType3')
_PipelineStepType4 = TypeVar('_PipelineStepType4')
_PipelineStepType5 = TypeVar('_PipelineStepType5')
_PipelineStepType6 = TypeVar('_PipelineStepType6')
_PipelineStepType7 = TypeVar('_PipelineStepType7')
_PipelineStepType8 = TypeVar('_PipelineStepType8')
_PipelineStepType9 = TypeVar('_PipelineStepType9')
_PipelineStepType10 = TypeVar('_PipelineStepType10')
_PipelineStepType11 = TypeVar('_PipelineStepType11')
_PipelineStepType12 = TypeVar('_PipelineStepType12')
_PipelineStepType13 = TypeVar('_PipelineStepType13')
_PipelineStepType14 = TypeVar('_PipelineStepType14')
_PipelineStepType15 = TypeVar('_PipelineStepType15')
_PipelineStepType16 = TypeVar('_PipelineStepType16')
_PipelineStepType17 = TypeVar('_PipelineStepType17')
_PipelineStepType18 = TypeVar('_PipelineStepType18')
_PipelineStepType19 = TypeVar('_PipelineStepType19')
_PipelineStepType20 = TypeVar('_PipelineStepType20')

class _Pipe(
    Generic[
        _InstanceType,
        _ReturnType,
        _PipelineStepType1,
        _PipelineStepType2,
        _PipelineStepType3,
        _PipelineStepType4,
        _PipelineStepType5,
        _PipelineStepType6,
        _PipelineStepType7,
        _PipelineStepType8,
        _PipelineStepType9,
        _PipelineStepType10,
        _PipelineStepType11,
        _PipelineStepType12,
        _PipelineStepType13,
        _PipelineStepType14,
        _PipelineStepType15,
        _PipelineStepType16,
        _PipelineStepType17,
        _PipelineStepType18,
        _PipelineStepType19,
        _PipelineStepType20,
    ]
):
    def __init__(  # noqa: WPS451
        self,
        functions: tuple[
            _PipelineStepType1,
            _PipelineStepType2,
            _PipelineStepType3,
            _PipelineStepType4,
            _PipelineStepType5,
            _PipelineStepType6,
            _PipelineStepType7,
            _PipelineStepType8,
            _PipelineStepType9,
            _PipelineStepType10,
            _PipelineStepType11,
            _PipelineStepType12,
            _PipelineStepType13,
            _PipelineStepType14,
            _PipelineStepType15,
            _PipelineStepType16,
            _PipelineStepType17,
            _PipelineStepType18,
            _PipelineStepType19,
            _PipelineStepType20,
        ],
        /,
    ) -> None: ...
    def __call__(self, instance: _InstanceType) -> _ReturnType: ...

def pipe(  # noqa: WPS451
    function1: _PipelineStepType1,
    function2: _PipelineStepType2 = ...,
    function3: _PipelineStepType3 = ...,
    function4: _PipelineStepType4 = ...,
    function5: _PipelineStepType5 = ...,
    function6: _PipelineStepType6 = ...,
    function7: _PipelineStepType7 = ...,
    function8: _PipelineStepType8 = ...,
    function9: _PipelineStepType9 = ...,
    function10: _PipelineStepType10 = ...,
    function11: _PipelineStepType11 = ...,
    function12: _PipelineStepType12 = ...,
    function13: _PipelineStepType13 = ...,
    function14: _PipelineStepType14 = ...,
    function15: _PipelineStepType15 = ...,
    function16: _PipelineStepType16 = ...,
    function17: _PipelineStepType17 = ...,
    function18: _PipelineStepType18 = ...,
    function19: _PipelineStepType19 = ...,
    function20: _PipelineStepType20 = ...,
    /,
) -> _Pipe[
    _InstanceType,
    _ReturnType,
    _PipelineStepType1,
    _PipelineStepType2,
    _PipelineStepType3,
    _PipelineStepType4,
    _PipelineStepType5,
    _PipelineStepType6,
    _PipelineStepType7,
    _PipelineStepType8,
    _PipelineStepType9,
    _PipelineStepType10,
    _PipelineStepType11,
    _PipelineStepType12,
    _PipelineStepType13,
    _PipelineStepType14,
    _PipelineStepType15,
    _PipelineStepType16,
    _PipelineStepType17,
    _PipelineStepType18,
    _PipelineStepType19,
    _PipelineStepType20,
]: ...