@@ -59,7 +59,7 @@ def primitive_to_value(v: ValueTypes) -> Value:
5959 return Value (string_value = v )
6060 if isinstance (v , Dict ):
6161 sv : Dict [str , Value ] = {}
62- for ( key , value ) in v .items ():
62+ for key , value in v .items ():
6363 if not isinstance (key , str ):
6464 raise TypeError (f"Invalid UTF-8 in string: { key } " )
6565 sv [key ] = primitive_to_value (value )
@@ -150,7 +150,7 @@ def struct_to_dict(struct: Struct) -> Dict[str, ValueTypes]:
150150
151151def sensor_readings_native_to_value (readings : Mapping [str , Any ]) -> Mapping [str , Any ]:
152152 prim_readings = dict (readings )
153- for ( key , reading ) in readings .items ():
153+ for key , reading in readings .items ():
154154 if isinstance (reading , Vector3 ):
155155 prim_readings [key ] = {"x" : reading .x , "y" : reading .y , "z" : reading .z , "_type" : "vector3" }
156156 elif isinstance (reading , GeoPoint ):
@@ -168,7 +168,7 @@ def sensor_readings_native_to_value(readings: Mapping[str, Any]) -> Mapping[str,
168168
169169def sensor_readings_value_to_native (readings : Mapping [str , Value ]) -> Mapping [str , Any ]:
170170 prim_readings = {key : value_to_primitive (value ) for (key , value ) in readings .items ()}
171- for ( key , reading ) in prim_readings .items ():
171+ for key , reading in prim_readings .items ():
172172 if isinstance (reading , Mapping ):
173173 kind = reading .get ("_type" , "" )
174174 if kind == "angular_velocity" :
0 commit comments