pub fn impl_py_method_def_new( cls: &Type, spec: &FnSpec<'_>, ctx: &Ctx, ) -> Result<MethodAndSlotDef>
Also used by pyclass.