Skip to content

Commit

Permalink
Add validator for last_published_baybe_version in ResultMetadata for …
Browse files Browse the repository at this point in the history
…type safety
  • Loading branch information
fabianliebig committed Nov 11, 2024
1 parent ee7eec6 commit 7f7ea4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/result/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f7ea4e

Please sign in to comment.