@@ -180,7 +180,7 @@ def yaml_not_supported(se: Any, de: Any, opt: Any) -> bool:
180180 [param ([1 , 2 ], list [int ]), param ({"a" : 1 }, dict [str , int ]), param ((1 , 1 ), tuple [int , int ])]
181181 )
182182
183- types_combinations : List = [
183+ types_combinations : List [ Any ] = [
184184 list (more_itertools .flatten (c )) for c in itertools .combinations (types , 2 )
185185]
186186
@@ -191,32 +191,41 @@ def yaml_not_supported(se: Any, de: Any, opt: Any) -> bool:
191191]
192192
193193
194- def make_id_from_dict (d : Dict [str , str ]) -> str :
194+ def make_id_from_dict (d : Dict [str , Union [ bool , str ] ]) -> str :
195195 if not d :
196196 return "none"
197197 else :
198198 key = list (d )[0 ]
199199 return f"{ key } -{ d [key ]} "
200200
201201
202- def opt_case_ids ():
202+ def opt_case_ids () -> List [str ]:
203+ """
204+ Create parametrize test id
205+ """
203206 return list (map (make_id_from_dict , opt_case ))
204207
205208
206- def type_ids ():
209+ def type_ids () -> List [str ]:
210+ """
211+ Create parametrize test id
212+ """
207213 from serde .compat import typename
208214
209- def make_id (pair : Tuple ) :
215+ def make_id (pair : Tuple [ Any , ...]) -> str :
210216 t , T , _ = pair
211217 return f"{ typename (T )} ({ t } )"
212218
213219 return list (map (make_id , types ))
214220
215221
216- def type_combinations_ids ():
222+ def type_combinations_ids () -> List [str ]:
223+ """
224+ Create parametrize test id
225+ """
217226 from serde .compat import typename
218227
219- def make_id (quad : Tuple ) :
228+ def make_id (quad : Tuple [ Any , ...]) -> str :
220229 t , T , u , U = quad
221230 return f"{ typename (T )} ({ t } )-{ typename (U )} ({ u } )"
222231
0 commit comments