@@ -487,7 +487,7 @@ def __repr__(self):
487
487
return self ._finfo .__repr__ ()
488
488
489
489
490
- def can_cast (from_ , to , casting = "safe" ) -> bool :
490
+ def can_cast (from_ , to , / , * , casting = "safe" ) -> bool :
491
491
""" can_cast(from, to, casting="safe")
492
492
493
493
Determines if one data type can be cast to another data type according \
@@ -619,7 +619,7 @@ def result_type(*arrays_and_dtypes):
619
619
return res_dt
620
620
621
621
622
- def iinfo (dtype ):
622
+ def iinfo (dtype , / ):
623
623
"""iinfo(dtype)
624
624
625
625
Returns machine limits for integer data types.
@@ -648,7 +648,7 @@ def iinfo(dtype):
648
648
return np .iinfo (dtype )
649
649
650
650
651
- def finfo (dtype ):
651
+ def finfo (dtype , / ):
652
652
"""finfo(type)
653
653
654
654
Returns machine limits for floating-point data types.
@@ -693,7 +693,7 @@ def _supported_dtype(dtypes):
693
693
return True
694
694
695
695
696
- def isdtype (dtype , kind ):
696
+ def isdtype (dtype , kind , / ):
697
697
"""isdtype(dtype, kind)
698
698
699
699
Returns a boolean indicating whether a provided `dtype` is
@@ -743,6 +743,8 @@ def isdtype(dtype, kind):
743
743
"_acceptance_fn_reciprocal" ,
744
744
"_acceptance_fn_default_binary" ,
745
745
"_acceptance_fn_divide" ,
746
+ "_acceptance_fn_negative" ,
747
+ "_acceptance_fn_subtract" ,
746
748
"_resolve_weak_types" ,
747
749
"_weak_type_num_kind" ,
748
750
"_strong_dtype_num_kind" ,
0 commit comments