MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / ohms

Method ohms

example_code/item_058.py:179–181  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

177class MysteriousResistor(Resistor):
178 @property
179 def ohms(self):
180 self.voltage = self._ohms * self.current
181 return self._ohms
182
183 @ohms.setter
184 def ohms(self, ohms):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected