From 9248385420fbd057f2847e4b99def27b2e8f480c Mon Sep 17 00:00:00 2001 From: Alexey Gorbatovski Date: Fri, 18 Oct 2024 20:22:53 +0300 Subject: [PATCH] Update turbo_alignment/metrics/registry.py Co-authored-by: Aleksey Malakhov <131314005+alekseymalakhov11@users.noreply.github.com> --- turbo_alignment/metrics/registry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/turbo_alignment/metrics/registry.py b/turbo_alignment/metrics/registry.py index e3b3681..d9f5abd 100755 --- a/turbo_alignment/metrics/registry.py +++ b/turbo_alignment/metrics/registry.py @@ -30,7 +30,7 @@ class DistinctnessSettings(MetricSettings): ngram: int = 5 @field_validator('ngram', mode='before') - def check_ngram(cls, value: int): + def check_ngram(cls, value: int) -> int: if value <= 0: raise ValueError('ngram should be greater that 0') return value