fixes dictionary serialization for keys that are not strings

This commit is contained in:
Mose Müller
2024-04-30 09:17:28 +02:00
parent bb3d6fcce1
commit 1c1584c2cf
2 changed files with 9 additions and 7 deletions

View File

@ -397,7 +397,7 @@ def test_dict_serialization() -> None:
test_dict = {
"int_key": 1,
"float_key": 1.0,
1.0: 1.0,
"bool_key": True,
"Quantity_key": 1.0 * u.units.s,
"DataService_key": MyClass(),
@ -439,8 +439,8 @@ def test_dict_serialization() -> None:
"type": "bool",
"value": True,
},
"float_key": {
"full_access_path": '["float_key"]',
1.0: {
"full_access_path": "[1.0]",
"doc": None,
"readonly": False,
"type": "float",