MCPcopy Index your code
hub / github.com/bedroombuilds/python2rust / __add__

Method __add__

0b_traits/python/defaults.py:10–11  ·  view source on GitHub ↗
(self, rh)

Source from the content-addressed store, hash-verified

8 return f"D({self.x}, {self.y}, {self.z})"
9
10 def __add__(self, rh):
11 return D(self.x + rh.x, self.y + rh.y, self.z + rh.z)
12
13 def __eq__(self, rh):
14 return self.x == rh.x and self.y == rh.y and self.z == rh.z

Callers

nothing calls this directly

Calls 1

DClass · 0.70

Tested by

no test coverage detected