MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / __init__

Method __init__

graphs/data/base/defs.py:87–97  ·  view source on GitHub ↗
(self, handle, unit, label, iconID, defaultValue, defaultRange, mainTooltip=None, secondaryTooltip=None, conditions=())

Source from the content-addressed store, hash-verified

85class Input:
86
87 def __init__(self, handle, unit, label, iconID, defaultValue, defaultRange, mainTooltip=None, secondaryTooltip=None, conditions=()):
88 self.handle = handle
89 self.unit = unit
90 self.label = label
91 self.iconID = iconID
92 self.defaultValue = defaultValue
93 self.defaultRange = defaultRange
94 self.mainTooltip = mainTooltip
95 self.secondaryTooltip = secondaryTooltip
96 # Format: ((x condition, y condition), (x condition, y condition), ...)
97 self.conditions = tuple(conditions)
98
99 def __hash__(self):
100 return hash((self.handle, self.unit, self.label, self.iconID, self.defaultValue, self.defaultRange, self.mainTooltip, self.secondaryTooltip, self.conditions))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected