@@ -25,11 +25,11 @@ import logging
25
25
26
26
from cpython cimport pycapsule
27
27
28
- from ._backend cimport (
28
+ from ._backend cimport ( # noqa: E211
29
29
DPCTLEvent_Create,
30
30
DPCTLEvent_Delete,
31
31
DPCTLEvent_Wait,
32
- DPCTLSyclEventRef,
32
+ DPCTLSyclEventRef,
33
33
DPCTLEvent_Copy
34
34
)
35
35
@@ -84,15 +84,15 @@ cdef void _event_capsule_deleter(object o):
84
84
85
85
86
86
cdef class _SyclEventRaw:
87
- """ Python wrapper class for a cl::sycl::event.
87
+ """ Python wrapper class for a `` cl::sycl::event`` .
88
88
"""
89
89
90
90
def __dealloc__ (self ):
91
91
DPCTLEvent_Delete(self ._event_ref)
92
92
93
93
94
94
cdef class SyclEventRaw(_SyclEventRaw):
95
- """ Python wrapper class for a cl::sycl::event.
95
+ """ Python wrapper class for a `` cl::sycl::event`` .
96
96
"""
97
97
98
98
@staticmethod
@@ -122,7 +122,7 @@ cdef class SyclEventRaw(_SyclEventRaw):
122
122
if (self ._event_ref is NULL ):
123
123
return - 1
124
124
return 0
125
-
125
+
126
126
cdef int _init_event_from_capsule(self , object cap):
127
127
cdef DPCTLSyclEventRef ERef = NULL
128
128
cdef DPCTLSyclEventRef ERef_copy = NULL
@@ -144,9 +144,9 @@ cdef class SyclEventRaw(_SyclEventRaw):
144
144
else :
145
145
return - 128
146
146
147
- def __cinit__ (self ,arg = None ):
147
+ def __cinit__ (self , arg = None ):
148
148
cdef int ret = 0
149
- if arg == None :
149
+ if arg is None :
150
150
ret = self ._init_event_default()
151
151
elif isinstance (arg, _SyclEventRaw):
152
152
ret = self ._init_event_from__SyclEventRaw(< _SyclEventRaw> arg)
@@ -175,22 +175,22 @@ cdef class SyclEventRaw(_SyclEventRaw):
175
175
)
176
176
177
177
cdef DPCTLSyclEventRef get_event_ref(self ):
178
- """ Returns the DPCTLSyclEventRef pointer for this class.
178
+ """ Returns the ` DPCTLSyclEventRef` pointer for this class.
179
179
"""
180
180
return self ._event_ref
181
181
182
182
cpdef void wait(self ):
183
183
DPCTLEvent_Wait(self ._event_ref)
184
184
185
185
def addressof_ref (self ):
186
- """ Returns the address of the C API DPCTLSyclEventRef pointer as
186
+ """ Returns the address of the C API ` DPCTLSyclEventRef` pointer as
187
187
a size_t.
188
188
189
189
Returns:
190
- The address of the DPCTLSyclEventRef object used to create this
191
- SyclEvent cast to a size_t.
190
+ The address of the ` DPCTLSyclEventRef` object used to create this
191
+ ` SyclEvent` cast to a size_t.
192
192
"""
193
- return int ( < size_t> self ._event_ref)
193
+ return < size_t> self ._event_ref
194
194
195
195
def _get_capsule (self ):
196
196
cdef DPCTLSyclEventRef ERef = NULL
0 commit comments