@@ -91,7 +91,7 @@ def _align_dtypes(a_dtype, bins_dtype, ntype, supported_types, device):
9191 return sample_type , hist_type
9292
9393 # should not happen
94- return None , None
94+ return None , None # pragma: no cover
9595
9696
9797def _ravel_check_a_and_weights (a , weights ):
@@ -392,7 +392,7 @@ def bincount(x, weights=None, minlength=None):
392392 x .dtype , x .dtype , ntype , supported_types , device
393393 )
394394
395- if x_casted_dtype is None or ntype_casted is None :
395+ if x_casted_dtype is None or ntype_casted is None : # pragma: no cover
396396 raise ValueError (
397397 f"function '{ bincount } ' does not support input types "
398398 f"({ x .dtype } , { ntype } ), "
@@ -607,7 +607,7 @@ def histogram(a, bins=10, range=None, density=None, weights=None):
607607 a .dtype , bin_edges .dtype , ntype , supported_types , device
608608 )
609609
610- if a_bin_dtype is None or hist_dtype is None :
610+ if a_bin_dtype is None or hist_dtype is None : # pragma: no cover
611611 raise ValueError (
612612 f"function '{ histogram } ' does not support input types "
613613 f"({ a .dtype } , { bin_edges .dtype } , { ntype } ), "
0 commit comments