Skip to content

Commit

Permalink
style: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreLeveau committed Sep 22, 2023
1 parent 526ceb3 commit e2afafc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/kili/entrypoints/mutations/label/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ def append_to_labels(
user = self.get_user() # type: ignore # pylint: disable=no-member
author_id = user["id"]

# fmt: off
check_asset_identifier_arguments(
ProjectId(project_id) if project_id else None,
cast(ListOrTuple[AssetId], [label_asset_id]) if label_asset_id else None,
Expand Down
5 changes: 4 additions & 1 deletion src/kili/use_cases/question/question_use_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ def create_questions(
external_id_array = None
else:
asset_id_array = None
external_id_array = [AssetExternalId(question.asset_external_id) for question in questions] # type: ignore
external_id_array = [
AssetExternalId(question.asset_external_id) # type: ignore
for question in questions
]

asset_ids = UseCasesUtils(self.kili_api_gateway).get_asset_ids_or_throw_error(
asset_ids=asset_id_array, external_ids=external_id_array, project_id=project_id
Expand Down
1 change: 0 additions & 1 deletion tests/integration/use_cases/test_question.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ def test_given_text_and_asset_ids_when_calling_create_questions_it_creates_quest
def test_given_text_and_external_ids_when_calling_create_questions_it_creates_questions(
mocker, kili_api_gateway
):
# Given
# Given
questions = [
QuestionToCreateUseCaseInput(
Expand Down

0 comments on commit e2afafc

Please sign in to comment.