Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
sjperkins committed Jan 29, 2024
1 parent 730dbaa commit 8ab1fa6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions africanus/experimental/rime/fused/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,15 @@ def rime_impl(*args):
@overload(rime_impl, jit_options=JIT_OPTIONS)
def nb_rime(*args):
if not len(args) > 0:
raise TypeError(f"rime must be called with at least the signature argument")
raise TypeError("rime must be at least be called "
"with the signature argument")

if not isinstance(args[0], types.Literal):
raise TypeError(f"Signature hash ({args[0]}) must be a literal")

if not len(args) % 2 == 1:
raise TypeError(f"Length of named arguments {len(args)} is not divisible by 2")
raise TypeError(f"Length of named arguments {len(args)} "
f"is not divisible by 2")

argstart = 1 + (len(args) - 1) // 2
names = args[1:argstart]
Expand Down

0 comments on commit 8ab1fa6

Please sign in to comment.