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

Method classmethod

tests/test_multiple_pymethods.rs:37–39  ·  view source on GitHub ↗
(_ty: &Bound<'_, PyType>)

Source from the content-addressed store, hash-verified

35impl PyClassWithMultiplePyMethods {
36 #[classmethod]
37 fn classmethod(_ty: &Bound<'_, PyType>) -> &'static str {
38 "classmethod"
39 }
40}
41
42#[pymethods]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected