diff options
| author | natsuoto <[email protected]> | 2026-07-16 17:31:49 +0530 |
|---|---|---|
| committer | natsuoto <[email protected]> | 2026-07-16 17:31:49 +0530 |
| commit | 1b43c8dc09adb9b54609cc8a1916c99eb6fe75c9 (patch) | |
| tree | 7731af50ed9117f8ac3d200591c3be23818d7b19 /tests/builder/cache.test.py | |
| parent | b7ae2f3885d5ff84237c9da8bc0c64fe1a509465 (diff) | |
| download | edify-1b43c8dc09adb9b54609cc8a1916c99eb6fe75c9.tar.xz edify-1b43c8dc09adb9b54609cc8a1916c99eb6fe75c9.zip | |
chore: enforce fully strict static typing across library, tests, and tooling with zero suppressions
Diffstat (limited to 'tests/builder/cache.test.py')
| -rw-r--r-- | tests/builder/cache.test.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/builder/cache.test.py b/tests/builder/cache.test.py index 045e8e9..4211698 100644 --- a/tests/builder/cache.test.py +++ b/tests/builder/cache.test.py @@ -1,6 +1,7 @@ """Tests for the per-instance lazy compile cache — semantics and cold/warm ratio.""" import time +from collections.abc import Callable from edify import Pattern, RegexBuilder @@ -21,7 +22,7 @@ def _hex_number_builder(): ) -def _measure_call_wall_clock(action, iterations): +def _measure_call_wall_clock(action: Callable[[], object], iterations: int) -> float: start = time.perf_counter() for _ in range(iterations): action() |
