Skip to content

Commit

Permalink
Merge pull request #180 from pidi3000/fix-RegionRestriction-fields-no…
Browse files Browse the repository at this point in the history
…t-optional

fix: make fields of `RegionRestriction` model optional
  • Loading branch information
MerleLiuKun authored Aug 6, 2024
2 parents 280d807 + 066879a commit 51ffda6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyyoutube/models/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class RegionRestriction(BaseModel):
Refer: https://developers.google.com/youtube/v3/docs/videos#contentDetails.regionRestriction
"""

allowed: List[str] = field(default=None)
blocked: List[str] = field(default=None, repr=False)
allowed: Optional[List[str]] = field(default=None)
blocked: Optional[List[str]] = field(default=None, repr=False)


# TODO get detail rating description
Expand Down

0 comments on commit 51ffda6

Please sign in to comment.