Skip to content

Commit 90afdc3

Browse files
Insert positional-only/keyword-only delimiters
Added two internal functions to __all__ list
1 parent 035f211 commit 90afdc3

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
@@ -743,6 +743,8 @@ def isdtype(dtype, kind):
743743
"_acceptance_fn_reciprocal",
744744
"_acceptance_fn_default_binary",
745745
"_acceptance_fn_divide",
746+
"_acceptance_fn_negative",
747+
"_acceptance_fn_subtract",
746748
"_resolve_weak_types",
747749
"_weak_type_num_kind",
748750
"_strong_dtype_num_kind",

0 commit comments

Comments
 (0)