Skip to content

Commit c25b50d

Browse files
committed
Lint fix
1 parent b130325 commit c25b50d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sr/robot3/simulator/camera.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ def read(self, fresh: bool = True) -> NDArray:
6464
rgb_frame_raw: NDArray[np.uint8] = np.frombuffer(img_data, np.uint8)
6565

6666
# Height is first, then width, then channels
67-
return rgb_frame_raw.reshape((self.image_size[1], self.image_size[0], 4), copy=True)
67+
return rgb_frame_raw.reshape( # type: ignore[call-overload,unused-ignore]
68+
(self.image_size[1], self.image_size[0], 4),
69+
copy=True,
70+
)
6871

6972
def close(self) -> None:
7073
"""Close the underlying socket on exit."""

0 commit comments

Comments
 (0)