Skip to content

Commit 2331c1c

Browse files
committed
Apply suggested docstring for get_array_dtype_scalar_type_resolver_function
1 parent 81b55bf commit 2331c1c

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

dpctl/tensor/_elementwise_common.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -488,12 +488,16 @@ def get_array_dtype_scalar_type_resolver_function(self):
488488
Resolver influences what type the scalar will be
489489
treated as prior to type promotion behavior.
490490
The function takes 3 arguments:
491-
o1_dtype - A class representing a Python scalar type or a dtype
492-
o2_dtype - A class representing a Python scalar type or a dtype
493-
sycl_dev - :class:`dpctl.SyclDevice` on which function evaluation
494-
is carried out.
495491
496-
One of o1_dtype and o2_dtype must be a dtype
492+
Args:
493+
o1_dtype (object, dtype):
494+
A class representing a Python scalar type or a ``dtype``
495+
o2_dtype (object, dtype):
496+
A class representing a Python scalar type or a ``dtype``
497+
sycl_dev (:class:`dpctl.SyclDevice`):
498+
Device on which function evaluation is carried out.
499+
500+
One of ``o1_dtype`` and ``o2_dtype`` must be a ``dtype`` instance.
497501
"""
498502
return self.weak_type_resolver_
499503

0 commit comments

Comments
 (0)