better and clean;

Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2023-05-08 12:58:35 -07:00
parent c209414459
commit 8cf515b39f
92 changed files with 2619 additions and 1373 deletions

View File

@ -35,7 +35,6 @@ def _parse_response(
*, response: httpx.Response
) -> Optional[
Union[
Any,
FileConversion,
FileCenterOfMass,
FileMass,
@ -107,21 +106,22 @@ def _parse_response(
if response.status_code == 500:
response_5XX = Error.from_dict(response.json())
return response_5XX
return None
return Error.from_dict(response.json())
def _build_response(
*, response: httpx.Response
) -> Response[
Union[
Any,
FileConversion,
FileCenterOfMass,
FileMass,
FileVolume,
FileDensity,
FileSurfaceArea,
Error,
Optional[
Union[
FileConversion,
FileCenterOfMass,
FileMass,
FileVolume,
FileDensity,
FileSurfaceArea,
Error,
]
]
]:
return Response(
@ -137,15 +137,16 @@ def sync_detailed(
*,
client: Client,
) -> Response[
Union[
Any,
FileConversion,
FileCenterOfMass,
FileMass,
FileVolume,
FileDensity,
FileSurfaceArea,
Error,
Optional[
Union[
FileConversion,
FileCenterOfMass,
FileMass,
FileVolume,
FileDensity,
FileSurfaceArea,
Error,
]
]
]:
kwargs = _get_kwargs(
@ -167,7 +168,6 @@ def sync(
client: Client,
) -> Optional[
Union[
Any,
FileConversion,
FileCenterOfMass,
FileMass,
@ -193,15 +193,16 @@ async def asyncio_detailed(
*,
client: Client,
) -> Response[
Union[
Any,
FileConversion,
FileCenterOfMass,
FileMass,
FileVolume,
FileDensity,
FileSurfaceArea,
Error,
Optional[
Union[
FileConversion,
FileCenterOfMass,
FileMass,
FileVolume,
FileDensity,
FileSurfaceArea,
Error,
]
]
]:
kwargs = _get_kwargs(
@ -221,7 +222,6 @@ async def asyncio(
client: Client,
) -> Optional[
Union[
Any,
FileConversion,
FileCenterOfMass,
FileMass,