| 115 | |
| 116 | |
| 117 | class InputCheckbox: |
| 118 | |
| 119 | def __init__(self, handle, label, defaultValue, conditions=()): |
| 120 | self.handle = handle |
| 121 | self.label = label |
| 122 | self.defaultValue = defaultValue |
| 123 | # Format: ((x condition, y condition), (x condition, y condition), ...) |
| 124 | self.conditions = tuple(conditions) |
| 125 | |
| 126 | def __hash__(self): |
| 127 | return hash((self.handle, self.label, self.defaultValue, self.conditions)) |
| 128 | |
| 129 | def __eq__(self, other): |
| 130 | if not isinstance(other, Input): |
| 131 | return False |
| 132 | return all(( |
| 133 | self.handle == other.handle, |
| 134 | self.label == other.label, |
| 135 | self.defaultValue == other.defaultValue, |
| 136 | self.conditions == other.conditions)) |
no outgoing calls
no test coverage detected