Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
JBWilkie committed Nov 16, 2023
1 parent 7602b46 commit 970358f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion darwin/future/meta/objects/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def move_to_folder(self, path: str) -> None:
dataset_id = cast(Union[int, List[int]], dataset_id)
filters = {"item_ids": [str(self.id)]}
move_list_of_items_to_folder(self.client, team_slug, dataset_id, path, filters)

def set_priority(self, priority: int) -> None:
team_slug, dataset_id = (
self.meta_params["team_slug"],
Expand Down
2 changes: 1 addition & 1 deletion darwin/future/meta/queries/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def move_to_folder(self, path) -> None:
ids = [item.id for item in self]
filters = {"item_ids": [str(item) for item in ids]}
move_list_of_items_to_folder(self.client, team_slug, dataset_ids, path, filters)

def set_priority(self, priority: int) -> None:
if "team_slug" not in self.meta_params:
raise ValueError("Must specify team_slug to query items")
Expand Down
5 changes: 2 additions & 3 deletions darwin/future/tests/meta/queries/test_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ def test_item_query_collect(item_query: ItemQuery, items_json: List[dict]) -> No
assert items[i].name == f"item_{i}"



def test_delete(
item_query: ItemQuery, items_json: List[dict], items: List[Item]
) -> None:
Expand Down Expand Up @@ -148,7 +147,7 @@ def test_move_to_folder_raises_on_incorrect_parameters(
with pytest.raises(BadRequest):
item_query.move_to_folder(path)


def test_set_priority(
item_query: ItemQuery, items_json: List[dict], items: List[Item]
) -> None:
Expand Down Expand Up @@ -224,7 +223,7 @@ def test_set_priority_raises_on_incorrect_parameters(
)
with pytest.raises(BadRequest):
item_query.set_priority(priority)


def test_restore(
item_query: ItemQuery, items_json: List[dict], items: List[Item]
Expand Down

0 comments on commit 970358f

Please sign in to comment.