Skip to content

Commit 4d93547

Browse files
committed
fix example
1 parent 2803346 commit 4d93547

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tests/python/python_shared_library.mojo

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ def PyInit_python_shared_library() -> PythonObject:
2121
abort(String("failed to create Python module: ", e))
2222

2323

24-
@export
25-
def mojo_count_args(py_self: PyObjectPtr, args: PyObjectPtr) -> PyObjectPtr:
24+
def mojo_count_args(py_self: PyObjectPtr, args: PyObjectPtr) abi("C") -> PyObjectPtr:
2625
ref cpython = Python().cpython()
2726

2827
var count = cpython.PyObject_Length(args)

0 commit comments

Comments
 (0)