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

Method classmethod_wrong_first_argument

tests/ui/invalid_pymethods.rs:39–42  ·  view source on GitHub ↗
(_t: NotATypeObject)

Source from the content-addressed store, hash-verified

37impl MyClass {
38 #[classmethod]
39 fn classmethod_wrong_first_argument(_t: NotATypeObject) -> Self {
40 //~^ ERROR: the trait bound `NotATypeObject: From<&pyo3::Bound<'_, PyType>>` is not satisfied
41 Self {}
42 }
43}
44
45#[pymethods]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected