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

Function optional_bool

tests/test_pyfunction.rs:35–37  ·  view source on GitHub ↗
(arg: Option<bool>)

Source from the content-addressed store, hash-verified

33
34#[pyfunction(signature = (arg = true))]
35fn optional_bool(arg: Option<bool>) -> String {
36 format!("{arg:?}")
37}
38
39#[test]
40fn test_optional_bool() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected