Skip to content

Commit

Permalink
fix f string (#829)
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaohanZhangCMU authored Nov 21, 2024
1 parent 3f75eb3 commit 322ceb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion streaming/base/format/mds/encodings.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def encode(self, obj: npt.NDArray) -> bytes:
parts.append(part)
else:
if obj.shape != self.shape:
raise ValueError('Wrong shape: expected {self.shape}, got {obj.shape}.')
raise ValueError(f'Wrong shape: expected {self.shape}, got {obj.shape}.')

# Encode the array values.
part = obj.tobytes()
Expand Down

0 comments on commit 322ceb3

Please sign in to comment.