Skip to content

Commit 63218b9

Browse files
Insert positional-only/keyword-only delimiters
Added two internal functions to __all__ list
1 parent 8fed12b commit 63218b9

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

dpctl/tensor/_type_utils.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ def __repr__(self):
487487
return self._finfo.__repr__()
488488

489489

490-
def can_cast(from_, to, casting="safe") -> bool:
490+
def can_cast(from_, to, /, *, casting="safe") -> bool:
491491
""" can_cast(from, to, casting="safe")
492492
493493
Determines if one data type can be cast to another data type according \
@@ -619,7 +619,7 @@ def result_type(*arrays_and_dtypes):
619619
return res_dt
620620

621621

622-
def iinfo(dtype):
622+
def iinfo(dtype, /):
623623
"""iinfo(dtype)
624624
625625
Returns machine limits for integer data types.
@@ -648,7 +648,7 @@ def iinfo(dtype):
648648
return np.iinfo(dtype)
649649

650650

651-
def finfo(dtype):
651+
def finfo(dtype, /):
652652
"""finfo(type)
653653
654654
Returns machine limits for floating-point data types.
@@ -693,7 +693,7 @@ def _supported_dtype(dtypes):
693693
return True
694694

695695

696-
def isdtype(dtype, kind):
696+
def isdtype(dtype, kind, /):
697697
"""isdtype(dtype, kind)
698698
699699
Returns a boolean indicating whether a provided `dtype` is
@@ -786,6 +786,8 @@ def _default_accumulation_dtype_fp_types(inp_dt, q):
786786
"_acceptance_fn_reciprocal",
787787
"_acceptance_fn_default_binary",
788788
"_acceptance_fn_divide",
789+
"_acceptance_fn_negative",
790+
"_acceptance_fn_subtract",
789791
"_resolve_weak_types",
790792
"_weak_type_num_kind",
791793
"_strong_dtype_num_kind",

0 commit comments

Comments
 (0)