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

Method __init__

example_code/item_051.py:140–144  ·  view source on GitHub ↗
(self, *, red, green, blue, alpha=1.0)

Source from the content-addressed store, hash-verified

138print("Example 14")
139class RGBA:
140 def __init__(self, *, red, green, blue, alpha=1.0):
141 self.red = red
142 self.green = green
143 self.blue = blue
144 self.alpha = alpha
145
146
147print("Example 15")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected