MCPcopy Index your code
hub / github.com/pyfa-org/Pyfa / InputCheckbox

Class InputCheckbox

graphs/data/base/defs.py:117–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115
116
117class 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))

Callers 3

FitCapacitorGraphClass · 0.90
FitRemoteRepsGraphClass · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected