Skip to content

Commit

Permalink
fix: Correct type for empty states (#3520)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkundu1 authored Nov 25, 2024
1 parent 0607ee4 commit 169751c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ansys/fluent/core/solver/flobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down Expand Up @@ -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 = []
Expand Down Expand Up @@ -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 = []
Expand Down

0 comments on commit 169751c

Please sign in to comment.