File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -71,8 +71,8 @@ class FromDictMixin:
71
71
SCHEMA : ClassVar [Schema ]
72
72
73
73
@classmethod
74
- def from_dict (cls , dct : Dict [str , Any ], many : Optional [ bool ] = None ) -> Self :
75
- return cast (Self , cls .SCHEMA .load (dct , many = many ))
74
+ def from_dict (cls , dct : Dict [str , Any ]) -> Self :
75
+ return cast (Self , cls .SCHEMA .load (dct ))
76
76
77
77
78
78
class BaseSchema (Schema ):
@@ -1174,7 +1174,7 @@ def from_response(
1174
1174
cls , response : "requests.Response" , data_type : Type [PaginatedData ]
1175
1175
) -> "CursorPaginatedResponse[PaginatedData]" :
1176
1176
data = cast (
1177
- List [PaginatedData ], data_type .from_dict (response .json (), many = True )
1177
+ List [PaginatedData ], [ data_type .from_dict (obj ) for obj in response .json ()]
1178
1178
)
1179
1179
paginated_response = cls (status_code = response .status_code , data = data )
1180
1180
You can’t perform that action at this time.
0 commit comments