File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -77,11 +77,11 @@ def from_dict(
77
77
}
78
78
script_type = script_json ["type" ]
79
79
target_class = types [script_type ]
80
- script_primitive = cls ._script_dict_to_primitive (script_json )
80
+ script_primitive = cls ._script_json_to_primitive (script_json )
81
81
return super (NativeScript , target_class ).from_primitive (script_primitive [1 :])
82
82
83
83
@classmethod
84
- def _script_dict_to_primitive (
84
+ def _script_json_to_primitive (
85
85
cls : Type [NativeScript ], script_json : JSON
86
86
) -> List [Primitive ]:
87
87
"""Serialize a standard JSON native script into a primitive array"""
@@ -105,17 +105,17 @@ def _script_dict_to_primitive(
105
105
if key == "type" :
106
106
continue
107
107
elif key == "scripts" :
108
- native_script .append (cls ._script_list_to_primitive (value ))
108
+ native_script .append (cls ._script_jsons_to_primitive (value ))
109
109
else :
110
110
native_script .append (value )
111
111
return native_script
112
112
113
113
@classmethod
114
- def _script_list_to_primitive (
114
+ def _script_jsons_to_primitive (
115
115
cls : Type [NativeScript ], script_jsons : List [JSON ]
116
116
) -> List [List [Primitive ]]:
117
117
"""Parse a list of JSON scripts into a list of primitive arrays"""
118
- native_script = [cls ._script_dict_to_primitive (i ) for i in script_jsons ]
118
+ native_script = [cls ._script_json_to_primitive (i ) for i in script_jsons ]
119
119
return native_script
120
120
121
121
def to_dict (self ) -> dict :
You can’t perform that action at this time.
0 commit comments