From ee22740a93082c0fc25056cef4733593ff7e22db Mon Sep 17 00:00:00 2001 From: izzy lyseggen Date: Tue, 1 Dec 2020 14:45:46 +0000 Subject: [PATCH] feat(serialisation): check for tuples --- speckle/serialization/base_object_serializer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/speckle/serialization/base_object_serializer.py b/speckle/serialization/base_object_serializer.py index ee1917d..45e389d 100644 --- a/speckle/serialization/base_object_serializer.py +++ b/speckle/serialization/base_object_serializer.py @@ -112,7 +112,7 @@ class BaseObjectSerializer: if isinstance(obj, PRIMITIVES): return obj - elif isinstance(obj, (list, set)): + elif isinstance(obj, (list, tuple, set)): return [self.traverse_value(o) for o in obj] elif isinstance(obj, dict): @@ -192,7 +192,7 @@ class BaseObjectSerializer: obj {dict} -- the dictionary representation of the object Returns: - Base -- the base object with all it's children attached + Base -- the base object with all its children attached """ base = Base()