From 6ecfac3246173b08ec84be2f64cfa78530d85461 Mon Sep 17 00:00:00 2001 From: Michael Dawson-Haggerty Date: Tue, 27 Aug 2024 19:42:54 -0400 Subject: [PATCH] apply ruff formatting --- trimesh/exchange/gltf.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/trimesh/exchange/gltf.py b/trimesh/exchange/gltf.py index 4ca29338a..856b8b355 100644 --- a/trimesh/exchange/gltf.py +++ b/trimesh/exchange/gltf.py @@ -1446,9 +1446,14 @@ def _read_buffers( assert 0 <= start <= start + length <= len(data) access[index] = np.array( np.lib.stride_tricks.as_strided( - np.frombuffer(data, dtype=np.uint8, offset=start, count=length), - [count, per_row], [stride, 1] - ).view(dtype).reshape(shape) + np.frombuffer( + data, dtype=np.uint8, offset=start, count=length + ), + [count, per_row], + [stride, 1], + ) + .view(dtype) + .reshape(shape) ) else: # length is the number of bytes per item times total