Skip to content

Commit

Permalink
regenerated schema
Browse files Browse the repository at this point in the history
  • Loading branch information
theorm committed Oct 17, 2024
1 parent 3aba8b9 commit bd1dd6d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
13 changes: 12 additions & 1 deletion impresso/api_client/models/topic_related_topics_item.py
Original file line number Diff line number Diff line change
@@ -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")


Expand All @@ -11,23 +13,29 @@ 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(
{
"uid": uid,
"w": w,
}
)
if avg is not UNSET:
field_dict["avg"] = avg

return field_dict

Expand All @@ -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
1 change: 1 addition & 0 deletions impresso/api_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit bd1dd6d

Please sign in to comment.