Skip to content

Commit 39e474a

Browse files
committed
types
1 parent 71e10f5 commit 39e474a

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

examples/cat-lounge/backend/app/cat_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from __future__ import annotations
22

3-
from datetime import datetime
43
import logging
4+
from datetime import datetime
55
from typing import Annotated, Any, Callable
66

77
from agents import Agent, RunContextWrapper, StopAtTools, function_tool

examples/metro-map/backend/app/server.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
WidgetItem,
2828
)
2929
from openai.types.responses import ResponseInputContentParam
30-
from pydantic import ValidationError
3130

3231
from .agents.metro_map_agent import MetroAgentContext, metro_map_agent
3332
from .agents.title_agent import title_agent

examples/news-guide/backend/app/widgets/event_list_widget.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from datetime import date, datetime
88
from itertools import groupby
9-
from typing import Any, Iterable, Mapping, Sequence
9+
from typing import Any, Iterable, Mapping
1010

1111
from chatkit.widgets import WidgetRoot
1212

examples/news-guide/backend/app/widgets/preview_widgets.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
from typing import Any
22

3-
from chatkit.widgets import WidgetRoot
4-
53
from ..data.article_store import ArticleMetadata
6-
from .widget_template import WidgetTemplate
4+
from .widget_template import BasicRoot, WidgetTemplate
75

86
AUTHOR_PROFILES: dict[str, dict[str, str]] = {
97
"elowen-wilder": {
@@ -49,7 +47,7 @@
4947
author_preview_widget_template = WidgetTemplate.from_file("author_preview.widget")
5048

5149

52-
def build_article_preview_widget(article: ArticleMetadata) -> WidgetRoot:
50+
def build_article_preview_widget(article: ArticleMetadata) -> BasicRoot:
5351
payload = {
5452
"id": article.id,
5553
"title": article.title,
@@ -68,7 +66,7 @@ def build_author_preview_widget(
6866
author_name: str,
6967
author_slug: str,
7068
article_count: int,
71-
) -> WidgetRoot:
69+
) -> BasicRoot:
7270
profile = _profile_for_author(author_slug)
7371
payload: dict[str, Any] = {
7472
"slug": author_slug,

0 commit comments

Comments
 (0)