From 6871e5f4dec037b2a547ce419299f2a9677c9de2 Mon Sep 17 00:00:00 2001 From: Kumar Aditya Date: Sat, 31 Oct 2026 17:50:46 +0530 Subject: [PATCH] regenerate clinic for sliceobject.c.h --- Objects/clinic/sliceobject.c.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Objects/clinic/sliceobject.c.h b/Objects/clinic/sliceobject.c.h index 39fff4b06eb6a35..20df083f27458ef 100644 --- a/Objects/clinic/sliceobject.c.h +++ b/Objects/clinic/sliceobject.c.h @@ -50,7 +50,7 @@ slice_vectorcall(PyObject *type, PyObject *const *args, PyObject *stop = NULL; PyObject *step = NULL; - assert(Py_Is(_PyType_CAST(type), &PySlice_Type)); + assert(_PyType_CAST(type)->tp_new == slice_new); /* Make sure the type object is immutable: the generated * vectorcall doesn't deal e.g. with users reassigning __init__. */ assert(PyType_HasFeature(_PyType_CAST(type), Py_TPFLAGS_IMMUTABLETYPE)); @@ -75,4 +75,4 @@ slice_vectorcall(PyObject *type, PyObject *const *args, exit: return return_value; } -/*[clinic end generated code: output=3547c23a3ee3cd86 input=a9049054013a1b77]*/ +/*[clinic end generated code: output=62159046029c6bdf input=a9049054013a1b77]*/