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

Method __init__

example_code/item_054.py:160–162  ·  view source on GitHub ↗
(self, ports=None, speed=None)

Source from the content-addressed store, hash-verified

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.45

Calls

no outgoing calls

Tested by

no test coverage detected