Skip to content

Commit 5050742

Browse files
authored
fix ci: some linting issues (#852)
1 parent 78b1796 commit 5050742

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/ragas/metrics/base.py

+6-5
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,13 @@ def get_required_columns(
5252
class Metric(ABC):
5353
@property
5454
@abstractmethod
55-
def name(self) -> str: ...
55+
def name(self) -> str:
56+
...
5657

5758
@property
5859
@abstractmethod
59-
def evaluation_mode(self) -> EvaluationMode: ...
60+
def evaluation_mode(self) -> EvaluationMode:
61+
...
6062

6163
@abstractmethod
6264
def init(self, run_config: RunConfig):
@@ -118,9 +120,8 @@ async def ascore(
118120
return score
119121

120122
@abstractmethod
121-
async def _ascore(
122-
self, row: t.Dict, callbacks: Callbacks, is_async: bool
123-
) -> float: ...
123+
async def _ascore(self, row: t.Dict, callbacks: Callbacks, is_async: bool) -> float:
124+
...
124125

125126

126127
@dataclass

0 commit comments

Comments
 (0)