Skip to content

Commit

Permalink
fix default value to none
Browse files Browse the repository at this point in the history
  • Loading branch information
HRashidi committed Jul 11, 2024
1 parent 62ab4f6 commit 44218df
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 1,019 deletions.
2 changes: 1 addition & 1 deletion aana/core/models/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class VideoMetadata(BaseModel):

title: str = Field(None, description="The title of the video.")
description: str = Field(None, description="The description of the video.")
duration: float = Field(None, description="The duration of the video.")
duration: float | None = Field(None, description="The duration of the video.")
model_config = ConfigDict(
json_schema_extra={
"description": "Metadata of a video.",
Expand Down
2 changes: 1 addition & 1 deletion aana/integrations/external/yt_dlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


def get_video_metadata(video_url: str) -> VideoMetadata:
"""Fetch videos metadata for a url.
"""Fetch video's metadata for a url.
Args:
video_url (str): the video input url
Expand Down
Loading

0 comments on commit 44218df

Please sign in to comment.