From eb6890bb87a25aa8a92df72d071098a868733aa6 Mon Sep 17 00:00:00 2001 From: Ashwin Srinath Date: Thu, 10 Jul 2025 07:51:11 -0400 Subject: [PATCH] Construct instance of appropriate class in Event._init --- cuda_core/cuda/core/experimental/_event.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cuda_core/cuda/core/experimental/_event.pyx b/cuda_core/cuda/core/experimental/_event.pyx index 944969852..85d606e36 100644 --- a/cuda_core/cuda/core/experimental/_event.pyx +++ b/cuda_core/cuda/core/experimental/_event.pyx @@ -89,7 +89,7 @@ cdef class Event: @classmethod def _init(cls, device_id: int, ctx_handle: Context, options=None): - cdef Event self = Event.__new__(Event) + cdef Event self = Event.__new__(cls) cdef EventOptions opts = check_or_create_options(EventOptions, options, "Event options") flags = 0x0 self._timing_disabled = False