Skip to content

Commit

Permalink
Fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
mhostetter committed Jul 13, 2023
1 parent d019209 commit a67a4b1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/sdr/_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,15 @@ def _unsigned_dtype(bits: int) -> np.integer:
"""
if bits <= 8:
return np.uint8
elif bits <= 16:
if bits <= 16:
return np.uint16
elif bits <= 32:
if bits <= 32:
return np.uint32
elif bits <= 64:
if bits <= 64:
return np.uint64
elif bits <= 128:
if bits <= 128:
return np.uint128
elif bits <= 256:
if bits <= 256:
return np.uint256
else:
raise ValueError(f"Cannot create unsigned integer dtype for {bits} bits.")

raise ValueError(f"Cannot create unsigned integer dtype for {bits} bits.")

0 comments on commit a67a4b1

Please sign in to comment.