Skip to content

Commit

Permalink
Merge pull request #165 from FREVA-CLINT/hot-fix-types
Browse files Browse the repository at this point in the history
Hot-fix: fix typing issues.
  • Loading branch information
antarcticrainforest authored Sep 28, 2023
2 parents 5b6ec38 + 7d986bf commit c00ae3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/evaluation_system/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
)


__version__ = "2309.0.1"
__version__ = "2309.0.2"
7 changes: 4 additions & 3 deletions src/freva/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from types import TracebackType
from typing import (
Any,
Dict,
Callable,
List,
Literal,
Expand Down Expand Up @@ -149,12 +150,12 @@ def __repr__(self) -> str:
)

@property
def _hist(self) -> dict[str, Any]:
def _hist(self) -> Dict[str, Any]:
log_level = logger.level
logger.setLevel(logging.WARNING)
try:
hist = cast(
list[dict[str, Any]],
List[Dict[str, Any]],
freva.history(entry_ids=self._id, return_results=True),
)[0]
except IndexError:
Expand All @@ -174,7 +175,7 @@ def status(self) -> str:
return cast(str, status_dict.get(status, "unkown"))

@property
def configuration(self) -> dict[str, Any]:
def configuration(self) -> Dict[str, Any]:
"""Get the plugin configuration."""
return self._hist.get("configuration", {})

Expand Down

0 comments on commit c00ae3b

Please sign in to comment.