Skip to content

Commit

Permalink
fix: return type hint of append_many_to_dataset (#1542)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas1312 authored Oct 17, 2023
1 parent e954a25 commit cc7f819
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/kili/entrypoints/mutations/asset/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def append_many_to_dataset(
wait_until_availability: bool = True,
from_csv: Optional[str] = None,
csv_separator: str = ",",
) -> Optional[Dict[Literal["id", "asset_ids"], Union[str, List[str]]]]:
) -> Dict[Literal["id", "asset_ids"], Union[str, List[str]]]:
# pylint: disable=line-too-long
"""Append assets to a project.
Expand Down Expand Up @@ -131,7 +131,7 @@ def append_many_to_dataset(
) or is_empty_list_with_warning(
"append_many_to_dataset", "json_content_array", json_content_array
):
return None
return {"id": project_id, "asset_ids": []}

if status_array is not None:
warnings.warn(
Expand Down

0 comments on commit cc7f819

Please sign in to comment.