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

Method __init__

eos/saveddata/mode.py:26–34  ·  view source on GitHub ↗
(self, item, owner=None)

Source from the content-addressed store, hash-verified

24class Mode(ItemAttrShortcut, HandledItem):
25
26 def __init__(self, item, owner=None):
27 if item.group.name != "Ship Modifiers":
28 raise ValueError(
29 'Passed item "%s" (category: (%s)) is not a Ship Modifier' % (item.name, item.category.name))
30 self.owner = owner
31 self.__item = item
32 self.__itemModifiedAttributes = ModifiedAttributeDict()
33 self.__itemModifiedAttributes.original = self.item.attributes
34 self.__itemModifiedAttributes.overrides = self.item.overrides
35
36 @property
37 def item(self):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected