We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70d61cb commit 7ebb584Copy full SHA for 7ebb584
eval_protocol/pytest/plugin.py
@@ -183,16 +183,12 @@ def _normalize_number(val: Optional[str]) -> Optional[str]:
183
184
185
def _normalize_success_threshold(val: Optional[str]) -> Optional[float]:
186
- """Normalize success threshold value as float between 0.0 and 1.0."""
+ """Normalize success threshold value as float."""
187
if val is None:
188
return None
189
190
try:
191
- threshold_float = float(val.strip())
192
- if 0.0 <= threshold_float <= 1.0:
193
- return threshold_float
194
- else:
195
- return None # threshold must be between 0 and 1
+ return float(val.strip())
196
except ValueError:
197
198
0 commit comments