@@ -19,12 +19,12 @@ Runtime contract: |
| 19 | from __future__ import annotations | 19 | from __future__ import annotations |
| 20 | | 20 | |
| 21 | import time | 21 | import time |
| 22 | -from typing import Any | | |
| 23 | | 22 | |
| 24 | from dlm_sway import __version__ | 23 | from dlm_sway import __version__ |
| 25 | from dlm_sway.core.errors import ProbeError | 24 | from dlm_sway.core.errors import ProbeError |
| 26 | from dlm_sway.core.result import ProbeResult, SuiteResult, Verdict, utcnow | 25 | from dlm_sway.core.result import ProbeResult, SuiteResult, Verdict, utcnow |
| 27 | from dlm_sway.core.scoring import DifferentialBackend | 26 | from dlm_sway.core.scoring import DifferentialBackend |
| | 27 | +from dlm_sway.core.sections import Section |
| 28 | from dlm_sway.probes.base import RunContext, build_probe | 28 | from dlm_sway.probes.base import RunContext, build_probe |
| 29 | from dlm_sway.probes.null_adapter import NullAdapterSpec, get_null_stats | 29 | from dlm_sway.probes.null_adapter import NullAdapterSpec, get_null_stats |
| 30 | from dlm_sway.suite.spec import SwaySpec | 30 | from dlm_sway.suite.spec import SwaySpec |
@@ -36,7 +36,7 @@ def run( |
| 36 | *, | 36 | *, |
| 37 | spec_path: str = "<memory>", | 37 | spec_path: str = "<memory>", |
| 38 | doc_text: str | None = None, | 38 | doc_text: str | None = None, |
| 39 | - sections: tuple[Any, ...] | None = None, | 39 | + sections: tuple[Section, ...] | None = None, |
| 40 | ) -> SuiteResult: | 40 | ) -> SuiteResult: |
| 41 | """Execute every probe in ``spec`` against ``backend``.""" | 41 | """Execute every probe in ``spec`` against ``backend``.""" |
| 42 | started = utcnow() | 42 | started = utcnow() |
@@ -133,4 +133,4 @@ def _with_duration(result: ProbeResult, duration: float) -> ProbeResult: |
| 133 | ) | 133 | ) |
| 134 | | 134 | |
| 135 | | 135 | |
| 136 | -__all__ = ["run", "get_null_stats"] | 136 | +__all__ = ["get_null_stats", "run"] |