Skip to content

Commit e5dd2d9

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 61ca98c commit e5dd2d9

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

openml/_api/resources/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class TasksAPI(ResourceAPI, ABC):
2727
def get(
2828
self,
2929
task_id: int,
30-
download_splits: bool = False, # noqa: FBT001, FBT002
30+
download_splits: bool = False, # noqa: FBT002
3131
**get_dataset_kwargs: Any,
3232
) -> OpenMLTask:
3333
"""

openml/_api/resources/tasks.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class TasksV1(TasksAPI):
2727
def get(
2828
self,
2929
task_id: int,
30-
download_splits: bool = False, # noqa: FBT001, FBT002
30+
download_splits: bool = False, # noqa: FBT002
3131
**get_dataset_kwargs: Any,
3232
) -> OpenMLTask:
3333
"""Download OpenML task for a given task ID.
@@ -161,7 +161,6 @@ def _create_task_from_xml(self, xml: str) -> OpenMLTask:
161161
raise NotImplementedError(f"Task type {common_kwargs['task_type']} not supported.")
162162
return cls(**common_kwargs) # type: ignore
163163

164-
165164
def list_tasks(
166165
self,
167166
limit: int,
@@ -504,7 +503,7 @@ class TasksV2(TasksAPI):
504503
def get(
505504
self,
506505
task_id: int,
507-
download_splits: bool = False, # noqa: FBT001, FBT002
506+
download_splits: bool = False, # noqa: FBT002
508507
**get_dataset_kwargs: Any,
509508
) -> OpenMLTask:
510509
if not isinstance(task_id, int):

openml/tasks/functions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def list_tasks( # noqa: PLR0913
8989

9090
return pd.concat(batches)
9191

92+
9293
def get_tasks(
9394
task_ids: list[int],
9495
download_data: bool | None = None,

0 commit comments

Comments
 (0)