Skip to content

Commit

Permalink
Ran linting
Browse files Browse the repository at this point in the history
  • Loading branch information
x-tabdeveloping committed Oct 30, 2024
1 parent cf32f23 commit 6d8ca54
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions mteb/load_results/benchmark_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
from pydantic import BaseModel, ConfigDict

from mteb.abstasks.AbsTask import AbsTask, ScoresDict
from mteb.abstasks.TaskMetadata import (ISO_LANGUAGE_SCRIPT, TASK_DOMAIN,
TASK_TYPE)
from mteb.abstasks.TaskMetadata import ISO_LANGUAGE_SCRIPT, TASK_DOMAIN, TASK_TYPE
from mteb.languages import ISO_LANGUAGE
from mteb.load_results.task_results import TaskResult
from mteb.models.overview import get_model_metas
Expand Down
8 changes: 6 additions & 2 deletions mteb/load_results/task_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,12 @@ def from_disk(cls, path: Path, load_historic_data: bool = True) -> TaskResult:
)

pre_1_11_load = (
"mteb_version" in data and Version(data["mteb_version"]) < Version("1.11.0")
) or "mteb_version" not in data # assume it is before 1.11.0 if the version is not present
(
"mteb_version" in data
and Version(data["mteb_version"]) < Version("1.11.0")
)
or "mteb_version" not in data
) # assume it is before 1.11.0 if the version is not present
try:
obj = cls.model_validate(data)
except Exception as e:
Expand Down

0 comments on commit 6d8ca54

Please sign in to comment.