From 905e5e10ad1f32b090a456cd16fa191ae7d0b783 Mon Sep 17 00:00:00 2001 From: "Martin K. Scherer" Date: Sun, 4 Jul 2021 20:38:43 +0200 Subject: [PATCH] fixes #385 (#386) Co-authored-by: Cagtay Fabry <43667554+CagtayFabry@users.noreply.github.com> --- weldx/asdf/util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weldx/asdf/util.py b/weldx/asdf/util.py index b8a3b0faf..de667fd3f 100644 --- a/weldx/asdf/util.py +++ b/weldx/asdf/util.py @@ -321,6 +321,7 @@ def dataclass_serialization_class( A new asdf serialization class. """ + v = version def _noop(tree): return tree @@ -332,7 +333,7 @@ def _noop(tree): class _SerializationClass(WeldxType): name = class_name - version = "1.0.0" + version = v types = [class_type] requires = ["weldx"] handle_dynamic_subclasses = True