chore: formatted

This commit is contained in:
Sundaram Kumar Jha
2026-04-01 23:47:37 +05:30
parent 81774d5d0e
commit 42fd1ec8d1
+1 -3
View File
@@ -17,9 +17,7 @@ DEFAULT_TIMEOUT_MS = 100
def _safe_pow(base: Any, exp: Any) -> Any:
if isinstance(exp, (int, float)) and abs(exp) > MAX_POWER_ABS_EXPONENT:
raise ValueError(
f"Power exponent exceeds safe limit ({MAX_POWER_ABS_EXPONENT})"
)
raise ValueError(f"Power exponent exceeds safe limit ({MAX_POWER_ABS_EXPONENT})")
if isinstance(base, int) and isinstance(exp, int) and exp > 0:
abs_base = abs(base)