From 066879ac6e86794054e0e25bbc96a913013b5f06 Mon Sep 17 00:00:00 2001 From: pidi3000 Date: Fri, 21 Jun 2024 17:28:24 +0200 Subject: [PATCH] made fields of `RegionRestriction` model optional --- pyyoutube/models/video.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyyoutube/models/video.py b/pyyoutube/models/video.py index 1947716..1572519 100644 --- a/pyyoutube/models/video.py +++ b/pyyoutube/models/video.py @@ -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