diff --git a/coloraide/algebra.py b/coloraide/algebra.py index 7d340356d..40222ae2d 100644 --- a/coloraide/algebra.py +++ b/coloraide/algebra.py @@ -35,8 +35,6 @@ ) from typing import Callable, Sequence, Iterator, Any, Iterable, overload -PY311 = (3, 11) <= sys.version_info - NaN = math.nan INF = math.inf @@ -158,9 +156,6 @@ def nth_root(n: float, p: float) -> float: # Can't do anything with zero return 0 - if PY311 and p == 3: - return math.cbrt(n) # type: ignore[attr-defined, no-any-return, unused-ignore] - return math.copysign(abs(n) ** (p ** -1), n)