@@ -22,18 +22,20 @@ API: exceptions
22
22
23
23
Exception for error on process calls.
24
24
25
- .. py : method :: __init__ (command, returncode, expected = None , stdout = None , stderr = None )
25
+ .. versionchanged :: 1.1.1 - provide full result
26
26
27
- :param command: command
28
- :type command: str
27
+ .. py :method :: __init__ (result, expected = None )
28
+
29
+ :param result: execution result
30
+ :type result: ExecResult
29
31
:param returncode: return code
30
- :type returncode: typing.Union[int, proc_enums. ExitCodes]
31
- :param expected: expected return codes
32
- :type expected: typing.Optional[typing.List[typing.Union[int, proc_enums.ExitCodes]]]
33
- :param stdout: stdout string or brief string
34
- :type stdout: typing.Any
35
- :param stderr: stderr string or brief string
36
- :type stderr: typing.Any
32
+ :type returncode: typing.Union[int, ExitCodes]
33
+
34
+ .. py : attribute :: result
35
+
36
+ Execution result
37
+
38
+ :rtype: ExecResult
37
39
38
40
.. py :attribute :: cmd
39
41
@@ -42,14 +44,16 @@ API: exceptions
42
44
43
45
.. py :attribute :: returncode
44
46
45
- ``typing.Union[int, proc_enums.ExitCodes] ``
46
47
return code
47
48
49
+ :rtype: typing.Union[int, ExitCodes]
50
+
48
51
.. py :attribute :: expected
49
52
50
- ``typing.List[typing.Union[int, proc_enums.ExitCodes]] ``
51
53
expected return codes
52
54
55
+ :rtype: typing.List[typing.Union[int, ExitCodes]]
56
+
53
57
.. py :attribute :: stdout
54
58
55
59
``typing.Any ``
@@ -71,11 +75,11 @@ API: exceptions
71
75
:param exceptions: Exception on connections
72
76
:type exceptions: ``typing.Dict[typing.Tuple[str, int], Exception] ``
73
77
:param errors: results with errors
74
- :type errors: `` typing.Dict[typing.Tuple[str, int], ExecResult] ``
78
+ :type errors: typing.Dict[typing.Tuple[str, int], ExecResult]
75
79
:param results: all results
76
- :type results: `` typing.Dict[typing.Tuple[str, int], ExecResult] ``
80
+ :type results: typing.Dict[typing.Tuple[str, int], ExecResult]
77
81
:param expected: expected return codes
78
- :type expected: `` typing.Optional[typing.List[typing.List[typing.Union[int, proc_enums. ExitCodes]]] ``
82
+ :type expected: typing.Optional[typing.List[typing.List[typing.Union[int, ExitCodes]]]
79
83
80
84
.. versionchanged :: 1.0 - fixed inheritance
81
85
@@ -91,19 +95,22 @@ API: exceptions
91
95
92
96
.. py :attribute :: errors
93
97
94
- ``typing.Dict[typing.Tuple[str, int], ExecResult] ``
95
98
results with errors
96
99
100
+ :rtype: typing.Dict[typing.Tuple[str, int], ExecResult]
101
+
97
102
.. py :attribute :: results
98
103
99
- ``typing.Dict[typing.Tuple[str, int], ExecResult] ``
100
104
all results
101
105
106
+ :rtype: typing.Dict[typing.Tuple[str, int], ExecResult]
107
+
102
108
.. py :attribute :: expected
103
109
104
- ``typing.List[typing.Union[int, proc_enums.ExitCodes]] ``
105
110
expected return codes
106
111
112
+ :rtype: typing.List[typing.Union[int, ExitCodes]]
113
+
107
114
.. py :exception :: ParallelCallProcessError(ExecCalledProcessError)
108
115
109
116
Exception during parallel execution.
@@ -113,11 +120,11 @@ API: exceptions
113
120
:param command: command
114
121
:type command: ``str ``
115
122
:param errors: results with errors
116
- :type errors: `` typing.Dict[typing.Tuple[str, int], ExecResult] ``
123
+ :type errors: typing.Dict[typing.Tuple[str, int], ExecResult]
117
124
:param results: all results
118
- :type results: `` typing.Dict[typing.Tuple[str, int], ExecResult] ``
125
+ :type results: typing.Dict[typing.Tuple[str, int], ExecResult]
119
126
:param expected: expected return codes
120
- :type expected: `` typing.Optional[typing.List[typing.List[typing.Union[int, proc_enums. ExitCodes]]] ``
127
+ :type expected: typing.Optional[typing.List[typing.List[typing.Union[int, ExitCodes]]]
121
128
122
129
.. versionchanged :: 1.0 - fixed inheritance
123
130
@@ -128,15 +135,18 @@ API: exceptions
128
135
129
136
.. py :attribute :: errors
130
137
131
- ``typing.Dict[typing.Tuple[str, int], ExecResult] ``
132
138
results with errors
133
139
140
+ :rtype: typing.Dict[typing.Tuple[str, int], ExecResult]
141
+
134
142
.. py :attribute :: results
135
143
136
- ``typing.Dict[typing.Tuple[str, int], ExecResult] ``
137
144
all results
138
145
146
+ :rtype: typing.Dict[typing.Tuple[str, int], ExecResult]
147
+
139
148
.. py :attribute :: expected
140
149
141
- ``typing.List[typing.Union[int, proc_enums.ExitCodes]] ``
142
150
expected return codes
151
+
152
+ :rtype: typing.List[typing.Union[int, ExitCodes]]
0 commit comments