Fix: Fixed linting errors
CI / benchmark-publish (pull_request) Has been skipped
CI / lint (pull_request) Successful in 16s
CI / build (pull_request) Successful in 17s
CI / quality (pull_request) Successful in 19s
CI / typecheck (pull_request) Successful in 33s
CI / security (pull_request) Successful in 35s
CI / integration_tests (pull_request) Successful in 2m41s
CI / unit_tests (pull_request) Successful in 6m18s
CI / docker (pull_request) Successful in 1m2s
CI / benchmark-regression (pull_request) Successful in 15m41s
CI / coverage (pull_request) Failing after 20m52s

This commit is contained in:
2026-02-22 13:57:53 -05:00
parent a0000afc72
commit 92c83ecc7e
19 changed files with 44 additions and 76 deletions
+4 -3
View File
@@ -10,6 +10,7 @@ from __future__ import annotations
import importlib
import sys
import typing
from pathlib import Path
# Ensure the local *source* tree is importable
@@ -51,7 +52,7 @@ class TimeActorCreation:
"""Benchmark actor creation with YAML text and metadata."""
_YAML = "name: bench/actor\nprovider: openai\nmodel: gpt-4\n"
_META = {"graph_nodes": ["a", "b"], "tool_count": 5}
_META: typing.ClassVar[dict] = {"graph_nodes": ["a", "b"], "tool_count": 5}
def time_create_minimal(self) -> None:
_make_actor("bench/minimal")
@@ -95,8 +96,8 @@ class TimeActorListing:
class TimeComputeHash:
"""Benchmark config hash computation."""
_SMALL_BLOB: dict = {"provider": "openai", "model": "gpt-4"}
_LARGE_BLOB: dict = {
_SMALL_BLOB: typing.ClassVar[dict] = {"provider": "openai", "model": "gpt-4"}
_LARGE_BLOB: typing.ClassVar[dict] = {
"provider": "openai",
"model": "gpt-4",
"options": {f"key_{i}": f"value_{i}" for i in range(100)},