1 2 3 4 5 6 7
Grail = cython.struct( age=cython.int, volume=cython.float) def main(): grail: Grail = Grail(5, 3.0) print(grail.age, grail.volume)