Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ DataclassRGBA
Class
DataclassRGBA
example_code/item_051.py:159–163 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
157
print(
"Example 16"
)
158
@dataclass(kw_only=True)
159
class
DataclassRGBA:
160
red: int
161
green: int
162
blue: int
163
alpha: int = 1.0
164
165
166
print(
"Example 17"
)
Callers
1
item_051.py
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected