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

Method attributeIDCallback

gui/builtinItemStatsViews/itemCompare.py:217–219  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

215 return "%s (%d)" % (group.name, value) if group is not None else str(value)
216
217 def attributeIDCallback():
218 attribute = Attribute.getInstance().getAttributeInfo(value)
219 return "%s (%d)" % (attribute.name.capitalize(), value)
220
221 trans = {
222 "Inverse Absolute Percent": (lambda: (1 - value) * 100, unitName),

Callers

nothing calls this directly

Calls 2

getAttributeInfoMethod · 0.80
getInstanceMethod · 0.45

Tested by

no test coverage detected