Skip to content

Commit ed0ddab

Browse files
committed
fix: allow floats for sentiment
1 parent db32cbf commit ed0ddab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

asknews_sdk/dto/stories.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class StoryResponse(BaseSchema):
133133
n_articles: Annotated[List[int], Field(title="N Articles")]
134134
n_updates: Annotated[int, Field(title="N Updates")]
135135
people: Annotated[List[str], Field(title="People")]
136-
reddit_sentiment: Annotated[List[int], Field(title="Reddit Sentiment")]
136+
reddit_sentiment: Annotated[List[int | float], Field(title="Reddit Sentiment")]
137137
reddit_sentiment_timestamps: Annotated[
138138
List[int], Field(title="Reddit Sentiment Timestamps")
139139
]

0 commit comments

Comments
 (0)