Skip to content

Commit 4416873

Browse files
committed
Changed to "is" when comparing types
1 parent 3165d1c commit 4416873

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stumpy/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,11 +429,11 @@ def check_dtype(a, dtype=np.float64): # pragma: no cover
429429
TypeError
430430
If the array type does not match `dtype`
431431
"""
432-
if dtype == int:
432+
if dtype is int:
433433
dtype = np.int64
434-
if dtype == float:
434+
if dtype is float:
435435
dtype = np.float64
436-
if dtype == bool:
436+
if dtype is bool:
437437
dtype = np.bool_
438438
if not np.issubdtype(a.dtype, dtype):
439439
msg = f"{dtype} dtype expected but found {a.dtype} in input array\n"

0 commit comments

Comments
 (0)