Skip to content

Commit

Permalink
correct typing
Browse files Browse the repository at this point in the history
  • Loading branch information
clefourrier committed Jan 27, 2025
1 parent 0a49ac0 commit 93d108e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lighteval/metrics/metrics_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

import logging
import os
from typing import Callable, Literal
from typing import Callable, Literal, Union

import nltk
import numpy as np
Expand Down Expand Up @@ -1050,10 +1050,10 @@ def __init__(
self,
k: int,
n: int = None,
normalize_gold: callable = None,
normalize_pred: callable = None,
normalize_gold: Callable = None,
normalize_pred: Callable = None,
strip_strings: bool = False,
sample_scoring_function: callable | str = None,
sample_scoring_function: Union[Callable[[str, str], float], str] = None,
):
"""Computing pass at k
Expand Down

0 comments on commit 93d108e

Please sign in to comment.