MCPcopy Create free account
hub / github.com/apache/tvm-ffi / __init__

Method __init__

tests/python/test_dataclass_py_class.py:5059–5063  ·  view source on GitHub ↗
(self, a: int, b: str)

Source from the content-addressed store, hash-verified

5057 b: str
5058
5059 def __init__(self, a: int, b: str) -> None:
5060 # For py_class, __new__ already allocated via __ffi_new__.
5061 # No need to call super().__init__() — just set fields directly.
5062 self.a = a
5063 self.b = b
5064
5065 obj = Leaf(5, "hi")
5066 assert obj.a == 5

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected