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

Class DataclassImmutablePoint

example_code/item_056.py:118–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116
117@dataclass(frozen=True)
118class DataclassImmutablePoint:
119 name: str
120 x: float
121 y: float
122
123
124print("Example 9")

Callers 1

item_056.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected