Skip to content

Commit decc7a8

Browse files
[pre-commit.ci] pre-commit autoupdate (#1318)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.11 → v0.1.13](astral-sh/ruff-pre-commit@v0.1.11...v0.1.13) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent b22a5e3 commit decc7a8

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ files: |
77
)/.*\.py$
88
repos:
99
- repo: https://github.com/astral-sh/ruff-pre-commit
10-
rev: v0.1.11
10+
rev: v0.1.13
1111
hooks:
1212
- id: ruff
1313
args: [--fix, --exit-non-zero-on-fix, --no-cache]

openml/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def __repr__(self) -> str:
2323

2424
@property
2525
@abstractmethod
26-
def id(self) -> int | None: # noqa: A003
26+
def id(self) -> int | None:
2727
"""The id of the entity, it is unique for its entity type."""
2828

2929
@property

openml/datasets/dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def qualities(self) -> dict[str, float] | None:
272272
return self._qualities
273273

274274
@property
275-
def id(self) -> int | None: # noqa: A003
275+
def id(self) -> int | None:
276276
"""Get the dataset numeric id."""
277277
return self.dataset_id
278278

openml/flows/flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def __init__( # noqa: PLR0913
165165
self._extension = extension
166166

167167
@property
168-
def id(self) -> int | None: # noqa: A003
168+
def id(self) -> int | None:
169169
"""The ID of the flow."""
170170
return self.flow_id
171171

openml/runs/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def predictions(self) -> pd.DataFrame:
169169
return self._predictions
170170

171171
@property
172-
def id(self) -> int | None: # noqa: A003
172+
def id(self) -> int | None:
173173
"""The ID of the run, None if not uploaded to the server yet."""
174174
return self.run_id
175175

openml/study/study.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def _entity_letter(cls) -> str:
9595
return "s"
9696

9797
@property
98-
def id(self) -> int | None: # noqa: A003
98+
def id(self) -> int | None:
9999
"""Return the id of the study."""
100100
return self.study_id
101101

openml/tasks/task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def _entity_letter(cls) -> str:
101101
return "t"
102102

103103
@property
104-
def id(self) -> int | None: # noqa: A003
104+
def id(self) -> int | None:
105105
"""Return the OpenML ID of this task."""
106106
return self.task_id
107107

0 commit comments

Comments
 (0)