Check the state of this task. Args: state (`TaskState`): the state to check Returns: bool: `True` is the task has the state or mask
(self, state)
| 134 | return depth |
| 135 | |
| 136 | def has_state(self, state): |
| 137 | """Check the state of this task. |
| 138 | |
| 139 | Args: |
| 140 | state (`TaskState`): the state to check |
| 141 | |
| 142 | Returns: |
| 143 | bool: `True` is the task has the state or mask |
| 144 | """ |
| 145 | return (self._state & state) != 0 |
| 146 | |
| 147 | def set_data(self, **kwargs): |
| 148 | """Defines the given attribute/value pairs in this task's data.""" |
no outgoing calls
no test coverage detected