Total Complexity | 1 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 1 | Features | 0 |
1 | from __future__ import ( |
||
10 | class StateStatus(enum.Enum): |
||
11 | """Enumeration of the possible :class:`State` statuses.""" |
||
12 | #: Pristin empty status. |
||
13 | init = 0 |
||
14 | #: Input has been set and Steps are running or ready. |
||
15 | running = 1 |
||
16 | #: All Steps are in the completed status or one was aborted. |
||
17 | completed = 2 |
||
18 | #: All steps completed as successful. |
||
19 | succeeded = completed | 4 |
||
20 | #: Step completed in failure. |
||
21 | failed = completed | 8 |
||
22 | |||
23 | def means(self, status): |
||
24 | # E1101: Instance of 'StateStatus' has no 'value' member |
||
25 | # pylint: disable=E1101 |
||
26 | return (self.value & status.value) == status.value |
||
27 | |||
53 |
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.