updates types

This commit is contained in:
Mose Müller 2024-03-27 17:13:25 +01:00
parent d1007fad14
commit e71186dce4
3 changed files with 8 additions and 2 deletions

View File

@ -47,7 +47,7 @@ class DataServiceCache:
return { return {
"full_access_path": full_access_path, "full_access_path": full_access_path,
"value": None, "value": None,
"type": "NoneType", "type": "None",
"doc": None, "doc": None,
"readonly": False, "readonly": False,
} }

View File

@ -427,7 +427,7 @@ def get_next_level_dict_by_key(
{ {
"full_access_path": "", "full_access_path": "",
"value": None, "value": None,
"type": "NoneType", "type": "None",
"doc": None, "doc": None,
"readonly": False, "readonly": False,
} }

View File

@ -67,6 +67,11 @@ class SerializedNoneType(SerializedObjectBase):
type: Literal["NoneType"] type: Literal["NoneType"]
class SerializedNoValue(SerializedObjectBase):
value: None
type: Literal["None"]
SerializedMethod = TypedDict( SerializedMethod = TypedDict(
"SerializedMethod", "SerializedMethod",
{ {
@ -110,4 +115,5 @@ SerializedObject = (
| SerializedDataService | SerializedDataService
| SerializedEnum | SerializedEnum
| SerializedQuantity | SerializedQuantity
| SerializedNoValue
) )