Commit ca89289c authored by Robert Bradshaw's avatar Robert Bradshaw Committed by GitHub

Fix documentation for cppclass static methods.

Closes #1438.
parent b8f32790
...@@ -612,8 +612,10 @@ If the Rectangle class has a static member: ...@@ -612,8 +612,10 @@ If the Rectangle class has a static member:
you can declare it using the Python @staticmethod decorator, i.e.:: you can declare it using the Python @staticmethod decorator, i.e.::
cdef extern from "Rectangle.h" namespace "shapes": cdef extern from "Rectangle.h" namespace "shapes":
@staticmethod cdef cppclass Rectangle:
void do_something() ...
@staticmethod
void do_something()
Declaring/Using References Declaring/Using References
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment