Skip to content

Commit

Permalink
Silence nonsensical typing complaint
Browse files Browse the repository at this point in the history
  • Loading branch information
sveinbjornt committed Oct 11, 2023
1 parent e28da65 commit de60ce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/icespeak/transcribe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ def _percent(tok: Tok, term: SimpleTree | None) -> str:
gender = "hk"
n, cases, _ = cast(tuple[float, Any, Any], tok.val)
case = "nf" if cases is None else cases[0]
if n.is_integer():
if n.is_integer(): # type: ignore
val = cls.number(n, case=case, gender=gender)
else:
val = cls.float(n, case=case, gender=gender)
Expand Down

0 comments on commit de60ce4

Please sign in to comment.