Skip to content

Commit 89298a9

Browse files
authored
Merge pull request #81 from kcl-lang/fix-python-api-calling-signature
fix: python api calling signature
2 parents 91d0f4b + 735abee commit 89298a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use pyo3::prelude::*;
33

44
/// Formats the sum of two numbers as string.
55
#[pyfunction]
6-
fn call<'a>(name: &'a [u8], args: &'a [u8]) -> PyResult<&'a [u8]> {
6+
fn call<'a>(name: &'a [u8], args: &'a [u8]) -> PyResult<Vec<u8>> {
77
kcl_lang::call(name, args).map_err(|e| PyErr::new::<PyException, _>(e.to_string()))
88
}
99

0 commit comments

Comments
 (0)