File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -927,13 +927,13 @@ def scan_diff(
927
927
928
928
def list_members (
929
929
self ,
930
- query_parameters : Optional [MembersParameters ] = None ,
930
+ parameters : Optional [MembersParameters ] = None ,
931
931
extra_headers : Optional [Dict [str , str ]] = None ,
932
932
) -> Union [Detail , CursorPaginatedResponse [Member ]]:
933
933
934
934
response = self .get (
935
935
endpoint = "members" ,
936
- params = query_parameters .to_dict () if query_parameters else {},
936
+ params = parameters .to_dict () if parameters else {},
937
937
extra_headers = extra_headers ,
938
938
)
939
939
Original file line number Diff line number Diff line change 15
15
cast ,
16
16
)
17
17
18
+ import marshmallow_dataclass
18
19
from marshmallow import EXCLUDE , Schema
19
20
from typing_extensions import Self
20
21
@@ -85,11 +86,25 @@ class PaginationParameter(ToDictMixin):
85
86
per_page : int = 20
86
87
87
88
89
+ PaginationParameterSchema = cast (
90
+ Type [BaseSchema ],
91
+ marshmallow_dataclass .class_schema (PaginationParameter , base_schema = BaseSchema ),
92
+ )
93
+ PaginationParameter .SCHEMA = PaginationParameterSchema ()
94
+
95
+
88
96
@dataclass
89
97
class SearchParameter (ToDictMixin ):
90
98
search : Optional [str ] = None
91
99
92
100
101
+ SearchParameterSchema = cast (
102
+ Type [BaseSchema ],
103
+ marshmallow_dataclass .class_schema (SearchParameter , base_schema = BaseSchema ),
104
+ )
105
+ SearchParameter .SCHEMA = SearchParameterSchema ()
106
+
107
+
93
108
class FromDictWithBase (FromDictMixin , Base ):
94
109
pass
95
110
You can’t perform that action at this time.
0 commit comments