-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Solve the problem caused by fixing syntax style
- Loading branch information
Showing
5 changed files
with
82 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
94 changes: 49 additions & 45 deletions
94
api/core/model_runtime/model_providers/zhipuai/zhipuai_sdk/core/_utils/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,53 @@ | ||
from ._transform import ( | ||
PropertyInfo, | ||
async_maybe_transform, | ||
async_transform, | ||
maybe_transform, | ||
transform, | ||
|
||
from ._utils import ( # noqa: I001 | ||
remove_notgiven_indict as remove_notgiven_indict, # noqa: PLC0414 | ||
flatten as flatten, # noqa: PLC0414 | ||
is_dict as is_dict, # noqa: PLC0414 | ||
is_list as is_list, # noqa: PLC0414 | ||
is_given as is_given, # noqa: PLC0414 | ||
is_tuple as is_tuple, # noqa: PLC0414 | ||
is_mapping as is_mapping, # noqa: PLC0414 | ||
is_tuple_t as is_tuple_t, # noqa: PLC0414 | ||
parse_date as parse_date, # noqa: PLC0414 | ||
is_iterable as is_iterable, # noqa: PLC0414 | ||
is_sequence as is_sequence, # noqa: PLC0414 | ||
coerce_float as coerce_float, # noqa: PLC0414 | ||
is_mapping_t as is_mapping_t, # noqa: PLC0414 | ||
removeprefix as removeprefix, # noqa: PLC0414 | ||
removesuffix as removesuffix, # noqa: PLC0414 | ||
extract_files as extract_files, # noqa: PLC0414 | ||
is_sequence_t as is_sequence_t, # noqa: PLC0414 | ||
required_args as required_args, # noqa: PLC0414 | ||
coerce_boolean as coerce_boolean, # noqa: PLC0414 | ||
coerce_integer as coerce_integer, # noqa: PLC0414 | ||
file_from_path as file_from_path, # noqa: PLC0414 | ||
parse_datetime as parse_datetime, # noqa: PLC0414 | ||
strip_not_given as strip_not_given, # noqa: PLC0414 | ||
deepcopy_minimal as deepcopy_minimal, # noqa: PLC0414 | ||
get_async_library as get_async_library, # noqa: PLC0414 | ||
maybe_coerce_float as maybe_coerce_float, # noqa: PLC0414 | ||
get_required_header as get_required_header, # noqa: PLC0414 | ||
maybe_coerce_boolean as maybe_coerce_boolean, # noqa: PLC0414 | ||
maybe_coerce_integer as maybe_coerce_integer, # noqa: PLC0414 | ||
drop_prefix_image_data as drop_prefix_image_data, # noqa: PLC0414 | ||
) | ||
|
||
|
||
from ._typing import ( | ||
extract_type_arg, | ||
extract_type_var_from_base, | ||
is_annotated_type, | ||
is_iterable_type, | ||
is_list_type, | ||
is_required_type, | ||
is_union_type, | ||
strip_annotated_type, | ||
is_list_type as is_list_type, # noqa: PLC0414 | ||
is_union_type as is_union_type, # noqa: PLC0414 | ||
extract_type_arg as extract_type_arg, # noqa: PLC0414 | ||
is_iterable_type as is_iterable_type, # noqa: PLC0414 | ||
is_required_type as is_required_type, # noqa: PLC0414 | ||
is_annotated_type as is_annotated_type, # noqa: PLC0414 | ||
strip_annotated_type as strip_annotated_type, # noqa: PLC0414 | ||
extract_type_var_from_base as extract_type_var_from_base, # noqa: PLC0414 | ||
) | ||
from ._utils import ( | ||
coerce_boolean, | ||
coerce_float, | ||
coerce_integer, | ||
deepcopy_minimal, | ||
drop_prefix_image_data, | ||
extract_files, | ||
file_from_path, | ||
flatten, | ||
get_async_library, | ||
get_required_header, | ||
is_dict, | ||
is_given, | ||
is_iterable, | ||
is_list, | ||
is_mapping, | ||
is_mapping_t, | ||
is_sequence, | ||
is_sequence_t, | ||
is_tuple, | ||
is_tuple_t, | ||
maybe_coerce_boolean, | ||
maybe_coerce_float, | ||
maybe_coerce_integer, | ||
parse_date, | ||
parse_datetime, | ||
remove_notgiven_indict, | ||
removeprefix, | ||
removesuffix, | ||
required_args, | ||
strip_not_given, | ||
|
||
from ._transform import ( | ||
PropertyInfo as PropertyInfo, # noqa: PLC0414 | ||
transform as transform, # noqa: PLC0414 | ||
async_transform as async_transform, # noqa: PLC0414 | ||
maybe_transform as maybe_transform, # noqa: PLC0414 | ||
async_maybe_transform as async_maybe_transform, # noqa: PLC0414 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters