Skip to content

Commit 7f2c90d

Browse files
Cycle 12: lift 'import math' to module level
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 0377cd7 commit 7f2c90d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/dqliteclient/connection.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import asyncio
44
import contextlib
5+
import math
56
from collections.abc import AsyncIterator, Awaitable, Callable, Sequence
67
from contextlib import asynccontextmanager
78
from typing import Any
@@ -87,8 +88,6 @@ def __init__(
8788
from keeping the client alive indefinitely within the
8889
per-operation deadline. Set to ``None`` to disable.
8990
"""
90-
import math
91-
9291
if not math.isfinite(timeout) or timeout <= 0:
9392
raise ValueError(f"timeout must be a positive finite number, got {timeout}")
9493
self._address = address

0 commit comments

Comments
 (0)