blob: d6b7225003f79d9f5f71e0e2b4d1518a48ca1d3d (
plain)
1
2
3
4
5
6
7
8
9
10
|
import cython
from cython.cimports.my_module import Shrubbery
@cython.cfunc
def another_shrubbery(sh1: Shrubbery) -> Shrubbery:
sh2: Shrubbery
sh2 = Shrubbery()
sh2.width = sh1.width
sh2.height = sh1.height
return sh2
|