Skip to content

Commit 0a2b75f

Browse files
author
Benjamin Moody
committed
_np_dtype: eliminate "is True".
Writing "if X is True" is almost always a mistake.
1 parent f4423d7 commit 0a2b75f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wfdb/io/_signal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1891,7 +1891,7 @@ def _np_dtype(bit_res, discrete):
18911891
if bit_res <= np_res:
18921892
break
18931893

1894-
if discrete is True:
1894+
if discrete:
18951895
return 'int' + str(np_res)
18961896
else:
18971897
# No float8 dtype

0 commit comments

Comments
 (0)