type: narrow core model test fixtures

This commit is contained in:
lda
2026-08-29 19:10:30 +07:00 Verified
parent ac09a577a2
commit c87911236a
6 changed files with 57 additions and 39 deletions
+3 -2
View File
@@ -13,6 +13,7 @@ from wf_artifacts.drafts.models import (
)
from wf_core import Workflow
from wf_core.models.input_bindings import ArrayExpression, LiteralExpression
from wf_core.models.json_values import JsonValue
from wf_core.models.steps import (
InputExpressionBinding,
InputPathBinding,
@@ -152,8 +153,8 @@ def _nested_expression_array(depth: int) -> dict[str, object]:
return expression
def _nested_json_list(depth: int) -> list[object]:
value: list[object] = ["leaf"]
def _nested_json_list(depth: int) -> list[JsonValue]:
value: list[JsonValue] = ["leaf"]
for _ in range(depth - 1):
value = [value]
return value