Skip to content

Commit 86359b9

Browse files
committed
fix(BA-5837): repair node.py after rebase (TYPE_CHECKING + JSON scalar)
1 parent a1e2d67 commit 86359b9

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

  • src/ai/backend/manager/api/gql/app_config/types

src/ai/backend/manager/api/gql/app_config/types/node.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
"""AppConfig (merged view) GQL output types (BEP-1052 §5)."""
1+
"""AppConfig (merged view) GQL output types."""
22

33
from __future__ import annotations
44

5-
from typing import Any
5+
from typing import TYPE_CHECKING, Annotated
66
from uuid import UUID
77

8+
import strawberry
9+
from strawberry.scalars import JSON
10+
811
from ai.backend.common.dto.manager.v2.app_config.response import AppConfigNode
912
from ai.backend.common.meta.meta import NEXT_RELEASE_VERSION
1013
from ai.backend.manager.api.gql.decorators import (
@@ -22,7 +25,7 @@
2225
BackendAIGQLMeta(
2326
added_version=NEXT_RELEASE_VERSION,
2427
description=(
25-
"Merged per-user AppConfig view (BEP-1052 §5). `fragments` are ordered "
28+
"Merged per-user AppConfig view. `fragments` are ordered "
2629
"low → high merge priority; `config` is the deep-merge result and is "
2730
"null when every contributing fragment is empty."
2831
),
@@ -45,6 +48,6 @@ class AppConfigGQL(PydanticOutputMixin[AppConfigNode]):
4548
] = gql_field(
4649
description="Contributing fragments in merge order (low → high).",
4750
)
48-
config: dict[str, Any] | None = gql_field(
51+
config: JSON | None = gql_field(
4952
description="Deep-merged configuration, or null when every fragment is empty.",
5053
)

0 commit comments

Comments
 (0)