MCPcopy Create free account
hub / github.com/JoshuaPostel/texaform / ShapeProperties

Class ShapeProperties

python/utils.py:110–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108
109@dataclass
110class ShapeProperties():
111 name: str
112 material: Literal["COPPER_PLATE", "IRON_PLATE", "WAFER"]
113 shape: Shape
114
115 @staticmethod
116 def from_name(name: str) -> Self:
117 match name:
118 case "GEAR":
119 return GEAR
120 case "BAR_WINDING":
121 return BAR_WINDING
122 case "NUT":
123 return NUT
124 case x:
125 ValueError(f"{x} not a shape")
126
127gear_text = """......OO......
128.OO...OO...OO.

Callers 1

utils.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected