Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ files: |
)/.*\.py$
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.11
rev: v0.1.13
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --no-cache]
Expand Down
2 changes: 1 addition & 1 deletion openml/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def __repr__(self) -> str:

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

@property
Expand Down
2 changes: 1 addition & 1 deletion openml/datasets/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def qualities(self) -> dict[str, float] | None:
return self._qualities

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

Expand Down
2 changes: 1 addition & 1 deletion openml/flows/flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def __init__( # noqa: PLR0913
self._extension = extension

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

Expand Down
2 changes: 1 addition & 1 deletion openml/runs/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def predictions(self) -> pd.DataFrame:
return self._predictions

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

Expand Down
2 changes: 1 addition & 1 deletion openml/study/study.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def _entity_letter(cls) -> str:
return "s"

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

Expand Down
2 changes: 1 addition & 1 deletion openml/tasks/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def _entity_letter(cls) -> str:
return "t"

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

Expand Down