(&'static self, method_defs: &'static [PyMethodDef], ctx: &Context)
| 1278 | } |
| 1279 | |
| 1280 | pub fn extend_methods(&'static self, method_defs: &'static [PyMethodDef], ctx: &Context) { |
| 1281 | for method_def in method_defs { |
| 1282 | let method = method_def.to_proper_method(self, ctx); |
| 1283 | self.set_attr(ctx.intern_str(method_def.name), method); |
| 1284 | } |
| 1285 | } |
| 1286 | } |
| 1287 | |
| 1288 | #[pyclass( |
no test coverage detected