From 5f505cd72688039a4cc34de460f4d7471ad48eb2 Mon Sep 17 00:00:00 2001 From: OpenHTF Owners Date: Tue, 27 Jan 2026 11:24:20 -0800 Subject: [PATCH] Add marginal arg to the within_percent validator to bring it in line with the other validators. PiperOrigin-RevId: 861811070 --- openhtf/util/validators.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openhtf/util/validators.py b/openhtf/util/validators.py index da05a12d..9ba26507 100644 --- a/openhtf/util/validators.py +++ b/openhtf/util/validators.py @@ -512,8 +512,8 @@ def __ne__(self, other) -> bool: @register -def within_percent(expected, percent): - return WithinPercent(expected, percent) +def within_percent(expected, percent, marginal_percent=None): + return WithinPercent(expected, percent, marginal_percent) class DimensionPivot(ValidatorBase):