Skip to content

Commit 84e5e6a

Browse files
committed
fix type check
Signed-off-by: Isotr0py <[email protected]>
1 parent 206672f commit 84e5e6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gguf-py/gguf/gguf_reader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def _get_field_parts(
247247
types.append(gtype)
248248
# Handle strings.
249249
if gtype == GGUFValueType.STRING:
250-
sparts: list[npt.NDArray[Any]] = self._get_str(offs)
250+
sparts: list[npt.NDArray[Any]] = list(self._get_str(offs))
251251
size = 8 + sparts[0].item()
252252
return size, sparts, [1], types
253253
# Check if it's a simple scalar type.

0 commit comments

Comments
 (0)