Skip to content

Commit 6b4d19a

Browse files
committed
Fix incorrect SyclDevice docstring
1 parent b1e8df1 commit 6b4d19a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

dpctl/_sycl_device.pyx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,8 @@ cdef class SyclDevice(_SyclDevice):
283283
284284
Args:
285285
arg (str, optional):
286-
The argument can be a selector string or ``None``.
286+
The argument can be a selector string, another
287+
:class:`dpctl.SyclDevice`, or ``None``.
287288
Defaults to ``None``.
288289
289290
Raises:
@@ -292,10 +293,8 @@ cdef class SyclDevice(_SyclDevice):
292293
temporary memory.
293294
SyclDeviceCreationError:
294295
If the :class:`dpctl.SyclDevice` object creation failed.
295-
ValueError:
296-
If the list of :class:`dpctl.SyclDevice` objects was empty,
297-
or the input capsule contained a null pointer or could not
298-
be renamed.
296+
TypeError:
297+
If the argument is not a :class:`dpctl.SyclDevice` or string.
299298
"""
300299
@staticmethod
301300
cdef SyclDevice _create(DPCTLSyclDeviceRef dref):
@@ -365,7 +364,7 @@ cdef class SyclDevice(_SyclDevice):
365364
else:
366365
raise TypeError(
367366
"Invalid argument. Argument should be a str object specifying "
368-
"a SYCL filter selector string."
367+
"a SYCL filter selector string or another SyclDevice."
369368
)
370369

371370
def print_device_info(self):

0 commit comments

Comments
 (0)