Skip to content

Commit

Permalink
fix ci: some linting issues (#852)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjmachan authored Apr 8, 2024
1 parent 78b1796 commit 5050742
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/ragas/metrics/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,13 @@ def get_required_columns(
class Metric(ABC):
@property
@abstractmethod
def name(self) -> str: ...
def name(self) -> str:
...

@property
@abstractmethod
def evaluation_mode(self) -> EvaluationMode: ...
def evaluation_mode(self) -> EvaluationMode:
...

@abstractmethod
def init(self, run_config: RunConfig):
Expand Down Expand Up @@ -118,9 +120,8 @@ async def ascore(
return score

@abstractmethod
async def _ascore(
self, row: t.Dict, callbacks: Callbacks, is_async: bool
) -> float: ...
async def _ascore(self, row: t.Dict, callbacks: Callbacks, is_async: bool) -> float:
...


@dataclass
Expand Down

0 comments on commit 5050742

Please sign in to comment.