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

Class Switch

example_code/item_054.py:159–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157 Machine(**kwargs) for kwargs in machines]
158
159class Switch(ToDictMixin, JsonMixin):
160 def __init__(self, ports=None, speed=None):
161 self.ports = ports
162 self.speed = speed
163
164class Machine(ToDictMixin, JsonMixin):
165 def __init__(self, cores=None, ram=None, disk=None):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected