MCPcopy Create free account
hub / github.com/PyO3/pyo3 / function_with_custom_conversion

Function function_with_custom_conversion

tests/test_pyfunction.rs:213–217  ·  view source on GitHub ↗
(
    #[pyo3(from_py_with = datetime_to_timestamp)] timestamp: i64,
)

Source from the content-addressed store, hash-verified

211
212#[pyfunction]
213fn function_with_custom_conversion(
214 #[pyo3(from_py_with = datetime_to_timestamp)] timestamp: i64,
215) -> i64 {
216 timestamp
217}
218
219#[test]
220fn test_function_with_custom_conversion() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected