pub fn gen_py_method( cls: &Type, method: PyMethod<'_>, meth_attrs: &[Attribute], ctx: &Ctx, ) -> Result<GeneratedPyMethod>