Skip to content

Commit 58137bb

Browse files
committed
chore(ag-ui): add missing __future__ imports
Add missing `from __future__ import annotations` imports to ensure ensure that only relevant type annotations are processed at runtime. Fix incorrect import of `dataclass` in `args.py`.
1 parent f2f60f1 commit 58137bb

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

examples/pydantic_ai_ag_ui_examples/api/agentic_generative_ui.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Agentic Generative UI feature."""
22

3+
from __future__ import annotations
4+
35
from enum import StrEnum
46
from typing import Annotated, Any, Literal
57

examples/pydantic_ai_ag_ui_examples/cli/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Command line interface for the PydanticAI AG-UI servers."""
22

3+
from __future__ import annotations
4+
35
from .args import Args, parse_args
46

57
__all__ = [

examples/pydantic_ai_ag_ui_examples/cli/args.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
"""CLI argument parser for the PydanticAI AG-UI servers."""
22

3+
from __future__ import annotations
4+
35
import argparse
6+
from dataclasses import dataclass
47
from typing import Any
58

69
from uvicorn.config import LOGGING_CONFIG
710

8-
from pydantic_ai.models import dataclass
9-
1011

1112
@dataclass
1213
class Args:

0 commit comments

Comments
 (0)