Skip to content

Commit c44187e

Browse files
authored
Autogen (#159)
1 parent 6a7176a commit c44187e

File tree

120 files changed

+2291
-234
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+2291
-234
lines changed

launch/api_client/api_client.py

Lines changed: 61 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,9 @@ def __init__(
416416
self.content = content
417417

418418
def _serialize_json(
419-
self, in_data: typing.Union[None, int, float, str, bool, dict, list], eliminate_whitespace: bool = False
419+
self,
420+
in_data: typing.Union[None, int, float, str, bool, dict, list],
421+
eliminate_whitespace: bool = False,
420422
) -> str:
421423
if eliminate_whitespace:
422424
return json.dumps(in_data, separators=self._json_encoder.compact_separators)
@@ -481,7 +483,19 @@ def __serialize_simple(
481483
def serialize(
482484
self,
483485
in_data: typing.Union[
484-
Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict
486+
Schema,
487+
Decimal,
488+
int,
489+
float,
490+
str,
491+
date,
492+
datetime,
493+
None,
494+
bool,
495+
list,
496+
tuple,
497+
dict,
498+
frozendict.frozendict,
485499
],
486500
) -> typing.Dict[str, str]:
487501
if self.schema:
@@ -597,7 +611,19 @@ def get_prefix_separator_iterator(self) -> typing.Optional[PrefixSeparatorIterat
597611
def serialize(
598612
self,
599613
in_data: typing.Union[
600-
Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict
614+
Schema,
615+
Decimal,
616+
int,
617+
float,
618+
str,
619+
date,
620+
datetime,
621+
None,
622+
bool,
623+
list,
624+
tuple,
625+
dict,
626+
frozendict.frozendict,
601627
],
602628
prefix_separator_iterator: typing.Optional[PrefixSeparatorIterator] = None,
603629
) -> typing.Dict[str, str]:
@@ -665,7 +691,19 @@ def __init__(
665691
def serialize(
666692
self,
667693
in_data: typing.Union[
668-
Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict
694+
Schema,
695+
Decimal,
696+
int,
697+
float,
698+
str,
699+
date,
700+
datetime,
701+
None,
702+
bool,
703+
list,
704+
tuple,
705+
dict,
706+
frozendict.frozendict,
669707
],
670708
) -> typing.Dict[str, str]:
671709
if self.schema:
@@ -732,7 +770,19 @@ def __to_headers(in_data: typing.Tuple[typing.Tuple[str, str], ...]) -> HTTPHead
732770
def serialize(
733771
self,
734772
in_data: typing.Union[
735-
Schema, Decimal, int, float, str, date, datetime, None, bool, list, tuple, dict, frozendict.frozendict
773+
Schema,
774+
Decimal,
775+
int,
776+
float,
777+
str,
778+
date,
779+
datetime,
780+
None,
781+
bool,
782+
list,
783+
tuple,
784+
dict,
785+
frozendict.frozendict,
736786
],
737787
) -> HTTPHeaderDict:
738788
if self.schema:
@@ -890,7 +940,9 @@ def __deserialize_application_octet_stream(
890940
return response.data
891941

892942
@staticmethod
893-
def __deserialize_multipart_form_data(response: urllib3.HTTPResponse) -> typing.Dict[str, typing.Any]:
943+
def __deserialize_multipart_form_data(
944+
response: urllib3.HTTPResponse,
945+
) -> typing.Dict[str, typing.Any]:
894946
msg = email.message_from_bytes(response.data)
895947
return {
896948
part.get_param("name", header="Content-Disposition"): part.get_payload(decode=True).decode(
@@ -1243,7 +1295,9 @@ def _verify_typed_dict_inputs_oapg(
12431295
if required_keys_with_unset_values:
12441296
raise ApiValueError(
12451297
"{} contains invalid unset values for {} required keys: {}".format(
1246-
cls.__name__, len(required_keys_with_unset_values), required_keys_with_unset_values
1298+
cls.__name__,
1299+
len(required_keys_with_unset_values),
1300+
required_keys_with_unset_values,
12471301
)
12481302
)
12491303

launch/api_client/model/body_upload_file_v1_files_post.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,13 @@ def __getitem__(self, name: typing_extensions.Literal["file"]) -> MetaOapg.prope
5151
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema:
5252
...
5353

54-
def __getitem__(self, name: typing.Union[typing_extensions.Literal["file",], str]):
54+
def __getitem__(
55+
self,
56+
name: typing.Union[
57+
typing_extensions.Literal["file",],
58+
str,
59+
],
60+
):
5561
# dict_instance[name] accessor
5662
return super().__getitem__(name)
5763

@@ -63,7 +69,13 @@ def get_item_oapg(self, name: typing_extensions.Literal["file"]) -> MetaOapg.pro
6369
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]:
6470
...
6571

66-
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["file",], str]):
72+
def get_item_oapg(
73+
self,
74+
name: typing.Union[
75+
typing_extensions.Literal["file",],
76+
str,
77+
],
78+
):
6779
return super().get_item_oapg(name)
6880

6981
def __new__(

launch/api_client/model/body_upload_file_v1_files_post.pyi

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,26 @@ class BodyUploadFileV1FilesPost(schemas.DictSchema):
4444
def __getitem__(self, name: typing_extensions.Literal["file"]) -> MetaOapg.properties.file: ...
4545
@typing.overload
4646
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
47-
def __getitem__(self, name: typing.Union[typing_extensions.Literal["file",], str]):
47+
def __getitem__(
48+
self,
49+
name: typing.Union[
50+
typing_extensions.Literal["file",],
51+
str,
52+
],
53+
):
4854
# dict_instance[name] accessor
4955
return super().__getitem__(name)
5056
@typing.overload
5157
def get_item_oapg(self, name: typing_extensions.Literal["file"]) -> MetaOapg.properties.file: ...
5258
@typing.overload
5359
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
54-
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["file",], str]):
60+
def get_item_oapg(
61+
self,
62+
name: typing.Union[
63+
typing_extensions.Literal["file",],
64+
str,
65+
],
66+
):
5567
return super().get_item_oapg(name)
5668
def __new__(
5769
cls,

launch/api_client/model/cancel_fine_tune_response.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,13 @@ def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.pr
5151
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema:
5252
...
5353

54-
def __getitem__(self, name: typing.Union[typing_extensions.Literal["success",], str]):
54+
def __getitem__(
55+
self,
56+
name: typing.Union[
57+
typing_extensions.Literal["success",],
58+
str,
59+
],
60+
):
5561
# dict_instance[name] accessor
5662
return super().__getitem__(name)
5763

@@ -63,7 +69,13 @@ def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.
6369
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]:
6470
...
6571

66-
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success",], str]):
72+
def get_item_oapg(
73+
self,
74+
name: typing.Union[
75+
typing_extensions.Literal["success",],
76+
str,
77+
],
78+
):
6779
return super().get_item_oapg(name)
6880

6981
def __new__(

launch/api_client/model/cancel_fine_tune_response.pyi

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,26 @@ class CancelFineTuneResponse(schemas.DictSchema):
4444
def __getitem__(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ...
4545
@typing.overload
4646
def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ...
47-
def __getitem__(self, name: typing.Union[typing_extensions.Literal["success",], str]):
47+
def __getitem__(
48+
self,
49+
name: typing.Union[
50+
typing_extensions.Literal["success",],
51+
str,
52+
],
53+
):
4854
# dict_instance[name] accessor
4955
return super().__getitem__(name)
5056
@typing.overload
5157
def get_item_oapg(self, name: typing_extensions.Literal["success"]) -> MetaOapg.properties.success: ...
5258
@typing.overload
5359
def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ...
54-
def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["success",], str]):
60+
def get_item_oapg(
61+
self,
62+
name: typing.Union[
63+
typing_extensions.Literal["success",],
64+
str,
65+
],
66+
):
5567
return super().get_item_oapg(name)
5668
def __new__(
5769
cls,

0 commit comments

Comments
 (0)