fix: add overlay to remove nullable from pagination offset params (#121)

This commit is contained in:
Matt Apperson
2026-04-14 12:48:15 -04:00
committed by GitHub
parent 2bba049182
commit b2386114cd
440 changed files with 36150 additions and 32168 deletions
@@ -19,18 +19,16 @@ WebSearchUserLocationType = Literal["approximate",]
class WebSearchUserLocationTypedDict(TypedDict):
r"""User location information for web search"""
type: NotRequired[WebSearchUserLocationType]
city: NotRequired[Nullable[str]]
country: NotRequired[Nullable[str]]
region: NotRequired[Nullable[str]]
timezone: NotRequired[Nullable[str]]
type: NotRequired[WebSearchUserLocationType]
class WebSearchUserLocation(BaseModel):
r"""User location information for web search"""
type: Optional[WebSearchUserLocationType] = None
city: OptionalNullable[str] = UNSET
country: OptionalNullable[str] = UNSET
@@ -39,9 +37,11 @@ class WebSearchUserLocation(BaseModel):
timezone: OptionalNullable[str] = UNSET
type: Optional[WebSearchUserLocationType] = None
@model_serializer(mode="wrap")
def serialize_model(self, handler):
optional_fields = ["type", "city", "country", "region", "timezone"]
optional_fields = ["city", "country", "region", "timezone", "type"]
nullable_fields = ["city", "country", "region", "timezone"]
null_default_fields = []