@@ -47,19 +47,15 @@ def _get_kwargs(
4747 }
4848
4949
50- def _parse_response (
51- * , response : httpx .Response
52- ) -> Optional [Union [List [AModel ], HTTPValidationError ,]]:
50+ def _parse_response (* , response : httpx .Response ) -> Optional [Union [List [AModel ], HTTPValidationError ]]:
5351 if response .status_code == 200 :
5452 return [AModel .from_dict (item ) for item in cast (List [Dict [str , Any ]], response .json ())]
5553 if response .status_code == 422 :
5654 return HTTPValidationError .from_dict (cast (Dict [str , Any ], response .json ()))
5755 return None
5856
5957
60- def _build_response (
61- * , response : httpx .Response
62- ) -> Response [Union [List [AModel ], HTTPValidationError ,]]:
58+ def _build_response (* , response : httpx .Response ) -> Response [Union [List [AModel ], HTTPValidationError ]]:
6359 return Response (
6460 status_code = response .status_code ,
6561 content = response .content ,
@@ -73,7 +69,7 @@ def sync_detailed(
7369 client : Client ,
7470 an_enum_value : List [AnEnum ],
7571 some_date : Union [datetime .date , datetime .datetime ],
76- ) -> Response [Union [List [AModel ], HTTPValidationError , ]]:
72+ ) -> Response [Union [List [AModel ], HTTPValidationError ]]:
7773 kwargs = _get_kwargs (
7874 client = client ,
7975 an_enum_value = an_enum_value ,
@@ -92,7 +88,7 @@ def sync(
9288 client : Client ,
9389 an_enum_value : List [AnEnum ],
9490 some_date : Union [datetime .date , datetime .datetime ],
95- ) -> Optional [Union [List [AModel ], HTTPValidationError , ]]:
91+ ) -> Optional [Union [List [AModel ], HTTPValidationError ]]:
9692 """ Get a list of things """
9793
9894 return sync_detailed (
@@ -107,7 +103,7 @@ async def asyncio_detailed(
107103 client : Client ,
108104 an_enum_value : List [AnEnum ],
109105 some_date : Union [datetime .date , datetime .datetime ],
110- ) -> Response [Union [List [AModel ], HTTPValidationError , ]]:
106+ ) -> Response [Union [List [AModel ], HTTPValidationError ]]:
111107 kwargs = _get_kwargs (
112108 client = client ,
113109 an_enum_value = an_enum_value ,
@@ -125,7 +121,7 @@ async def asyncio(
125121 client : Client ,
126122 an_enum_value : List [AnEnum ],
127123 some_date : Union [datetime .date , datetime .datetime ],
128- ) -> Optional [Union [List [AModel ], HTTPValidationError , ]]:
124+ ) -> Optional [Union [List [AModel ], HTTPValidationError ]]:
129125 """ Get a list of things """
130126
131127 return (
0 commit comments