Skip to content

Commit

Permalink
Ignore Python version specific mypy error(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
facelessuser committed Nov 22, 2023
1 parent 226aed8 commit 0bb1258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coloraide/algebra.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def nth_root(n: float, p: float) -> float:
return 0

if PY311 and p == 3:
return math.cbrt(n)
return math.cbrt(n) # type: ignore[attr-defined, no-any-return, unused-ignore]

return math.copysign(abs(n) ** (p ** -1), n)

Expand Down

0 comments on commit 0bb1258

Please sign in to comment.