mirror of
https://github.com/clearml/clearml-server
synced 2025-04-06 14:05:05 +00:00
Fix DictField deserialization
This commit is contained in:
parent
c71c65be87
commit
7bdf8fe30d
@ -85,7 +85,7 @@ class DictField(fields.BaseField):
|
||||
if not values:
|
||||
return result
|
||||
|
||||
if not isinstance(values, dict):
|
||||
if not self.value_types or not isinstance(values, dict):
|
||||
return values
|
||||
|
||||
return {key: self._cast_value(value) for key, value in values.items()}
|
||||
|
Loading…
Reference in New Issue
Block a user