MCPcopy Create free account
hub / github.com/bedroombuilds/python2rust / __init__

Method __init__

0b_traits/python/defaults.py:2–5  ·  view source on GitHub ↗
(self, x, y, z=None)

Source from the content-addressed store, hash-verified

1class D:
2 def __init__(self, x, y, z=None):
3 self.x = x
4 self.y = y
5 self.z = z if z is not None else 0
6
7 def __str__(self):
8 return f"D({self.x}, {self.y}, {self.z})"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected