Skip to content

Commit 0e0450b

Browse files
Fix formatting in sensor_msgs_py (#248)
Signed-off-by: Christophe Bedard <[email protected]>
1 parent 9136871 commit 0e0450b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sensor_msgs_py/sensor_msgs_py/numpy_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def count_elem(dt):
6363
# optimization: avoid list comprehension if no subarray
6464
fields.extend(subfields)
6565
else:
66-
fields.extend([(d, c, o + i*size) for d, c, o in subfields])
66+
fields.extend([(d, c, o + i * size) for d, c, o in subfields])
6767
return fields
6868

6969

sensor_msgs_py/sensor_msgs_py/point_cloud2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,9 @@ def dtype_from_fields(fields: Iterable[PointField], point_step: Optional[int] =
226226

227227
# Create dtype
228228
dtype_dict = {
229-
'names': field_names,
230-
'formats': field_datatypes,
231-
'offsets': field_offsets
229+
'names': field_names,
230+
'formats': field_datatypes,
231+
'offsets': field_offsets
232232
}
233233
if point_step is not None:
234234
dtype_dict['itemsize'] = point_step

0 commit comments

Comments
 (0)