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

Function function_with_multiple_custom_warnings

tests/test_pyfunction.rs:794–794  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

792 #[pyo3(warn(message = "TPMW: this function raises FutureWarning", category = PyFutureWarning))]
793 #[pyo3(warn(message = "TPMW: this function raises user-defined warning", category = UserDefinedWarning))]
794 fn function_with_multiple_custom_warnings() {}
795
796 #[cfg(not(Py_LIMITED_API))]
797 py_expect_warning_for_fn!(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected