@ -996,7 +996,7 @@ def generateType(path: str, name: str, schema: dict):
|
|||||||
f.write(
|
f.write(
|
||||||
"\t\t" +
|
"\t\t" +
|
||||||
property_name +
|
property_name +
|
||||||
" = cast(List["+ property_type + "], d.pop(\"" +
|
" = cast(List[" + property_type + "], d.pop(\"" +
|
||||||
property_name +
|
property_name +
|
||||||
"\", UNSET))\n")
|
"\", UNSET))\n")
|
||||||
f.write("\n")
|
f.write("\n")
|
||||||
|
@ -34,7 +34,7 @@ class ApiCallWithPriceResultsPage:
|
|||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
items = d.pop("items", UNSET)
|
items = cast(List[ApiCallWithPrice], d.pop("items", UNSET))
|
||||||
|
|
||||||
next_page = d.pop("next_page", UNSET)
|
next_page = d.pop("next_page", UNSET)
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ class ApiTokenResultsPage:
|
|||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
items = d.pop("items", UNSET)
|
items = cast(List[ApiToken], d.pop("items", UNSET))
|
||||||
|
|
||||||
next_page = d.pop("next_page", UNSET)
|
next_page = d.pop("next_page", UNSET)
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ class ExtendedUserResultsPage:
|
|||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
items = d.pop("items", UNSET)
|
items = cast(List[ExtendedUser], d.pop("items", UNSET))
|
||||||
|
|
||||||
next_page = d.pop("next_page", UNSET)
|
next_page = d.pop("next_page", UNSET)
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ class FileConversionResultsPage:
|
|||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
items = d.pop("items", UNSET)
|
items = cast(List[FileConversion], d.pop("items", UNSET))
|
||||||
|
|
||||||
next_page = d.pop("next_page", UNSET)
|
next_page = d.pop("next_page", UNSET)
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@ class UserResultsPage:
|
|||||||
@classmethod
|
@classmethod
|
||||||
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
||||||
d = src_dict.copy()
|
d = src_dict.copy()
|
||||||
items = d.pop("items", UNSET)
|
items = cast(List[User], d.pop("items", UNSET))
|
||||||
|
|
||||||
next_page = d.pop("next_page", UNSET)
|
next_page = d.pop("next_page", UNSET)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user