From 7f7ea4ed0f31047f8730fb59074a1fde62add0b5 Mon Sep 17 00:00:00 2001 From: Fabian Liebig Date: Mon, 11 Nov 2024 16:16:21 +0100 Subject: [PATCH] Add validator for last_published_baybe_version in ResultMetadata for type safety --- benchmarks/result/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmarks/result/metadata.py b/benchmarks/result/metadata.py index f6604df42..e66c7cc73 100644 --- a/benchmarks/result/metadata.py +++ b/benchmarks/result/metadata.py @@ -25,7 +25,7 @@ class ResultMetadata(SerialMixin): commit_hash: str = field(validator=instance_of(str), init=False) """The commit hash of the used BayBE code.""" - last_published_baybe_version: str = field(init=False) + last_published_baybe_version: str = field(validator=instance_of(str), init=False) """The used BayBE version.""" @commit_hash.default