From 169751c711485cf3232f061e0c1b9e1685c3f75a Mon Sep 17 00:00:00 2001 From: Mainak Kundu <94432368+mkundu1@users.noreply.github.com> Date: Mon, 25 Nov 2024 14:27:28 -0500 Subject: [PATCH] fix: Correct type for empty states (#3520) --- src/ansys/fluent/core/solver/flobject.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ansys/fluent/core/solver/flobject.py b/src/ansys/fluent/core/solver/flobject.py index c0a41fe3db0..a7c7d5f0ca9 100644 --- a/src/ansys/fluent/core/solver/flobject.py +++ b/src/ansys/fluent/core/solver/flobject.py @@ -1055,7 +1055,7 @@ def to_python_keys(cls, value): ret[mname] = ccls.to_python_keys(mvalue) return ret else: - return value + return {} _child_classes = {} child_names = [] @@ -1325,7 +1325,7 @@ def to_python_keys(cls, value): ret[k] = cls.child_object_type.to_python_keys(v) return ret else: - return value + return {} _child_classes = {} command_names = [] @@ -1531,7 +1531,7 @@ def to_python_keys(cls, value): if isinstance(value, collections.abc.Sequence): return [cls.child_object_type.to_python_keys(v) for v in value] else: - return value + return [] _child_classes = {} command_names = []