summaryrefslogtreecommitdiff
path: root/docs/examples/userguide/sharing_declarations/shrubbing.py
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/userguide/sharing_declarations/shrubbing.py')
-rw-r--r--docs/examples/userguide/sharing_declarations/shrubbing.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/examples/userguide/sharing_declarations/shrubbing.py b/docs/examples/userguide/sharing_declarations/shrubbing.py
new file mode 100644
index 000000000..27e20d631
--- /dev/null
+++ b/docs/examples/userguide/sharing_declarations/shrubbing.py
@@ -0,0 +1,10 @@
+import cython
+
+@cython.cclass
+class Shrubbery:
+ def __cinit__(self, w: cython.int, l: cython.int):
+ self.width = w
+ self.length = l
+
+def standard_shrubbery():
+ return Shrubbery(3, 7)