pub fn impl_py_method_def( cls: &Type, spec: &FnSpec<'_>, doc: Option<&PythonDoc>, ctx: &Ctx, ) -> Result<MethodAndMethodDef>