From bd1dd6db94408abaa62d25c93053551968da9b7b Mon Sep 17 00:00:00 2001 From: Roman Kalyakin Date: Thu, 17 Oct 2024 15:41:08 +0200 Subject: [PATCH] regenerated schema --- .../api_client/models/topic_related_topics_item.py | 13 ++++++++++++- impresso/api_models.py | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/impresso/api_client/models/topic_related_topics_item.py b/impresso/api_client/models/topic_related_topics_item.py index 70f2ca5..cda157a 100644 --- a/impresso/api_client/models/topic_related_topics_item.py +++ b/impresso/api_client/models/topic_related_topics_item.py @@ -1,7 +1,9 @@ -from typing import Any, Dict, Type, TypeVar +from typing import Any, Dict, Type, TypeVar, Union from attrs import define as _attrs_define +from ..types import UNSET, Unset + T = TypeVar("T", bound="TopicRelatedTopicsItem") @@ -11,16 +13,20 @@ class TopicRelatedTopicsItem: Attributes: uid (str): The unique identifier of the related topic w (float): TODO + avg (Union[Unset, float]): TODO """ uid: str w: float + avg: Union[Unset, float] = UNSET def to_dict(self) -> Dict[str, Any]: uid = self.uid w = self.w + avg = self.avg + field_dict: Dict[str, Any] = {} field_dict.update( { @@ -28,6 +34,8 @@ def to_dict(self) -> Dict[str, Any]: "w": w, } ) + if avg is not UNSET: + field_dict["avg"] = avg return field_dict @@ -38,9 +46,12 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T: w = d.pop("w") + avg = d.pop("avg", UNSET) + topic_related_topics_item = cls( uid=uid, w=w, + avg=avg, ) return topic_related_topics_item diff --git a/impresso/api_models.py b/impresso/api_models.py index 589a0af..ebaa1e0 100644 --- a/impresso/api_models.py +++ b/impresso/api_models.py @@ -626,6 +626,7 @@ class RelatedTopic(BaseModel): ) uid: Annotated[str, Field(description='The unique identifier of the related topic')] w: Annotated[float, Field(description='TODO')] + avg: Annotated[Optional[float], Field(None, description='TODO')] class TopicWord(BaseModel):