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

Method method_cannot_pass_module

tests/ui/invalid_pymethods.rs:174–174  ·  view source on GitHub ↗

~^ ERROR: `pass_module` cannot be used on Python methods

(&self, _m: &PyModule)

Source from the content-addressed store, hash-verified

172 #[pyo3(pass_module)]
173 //~^ ERROR: `pass_module` cannot be used on Python methods
174 fn method_cannot_pass_module(&self, _m: &PyModule) {}
175}
176
177#[pymethods]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected