Skip to content

Commit b6d772f

Browse files
committed
docs: Fix comment about duplicate key check
Branch: GraniteFour Signed-off-by: Gabe Goodhart <ghart@us.ibm.com>
1 parent 1085cf9 commit b6d772f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gguf-py/gguf/gguf_writer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def write_ti_data_to_file(self) -> None:
270270
self.state = WriterState.TI_DATA
271271

272272
def add_key_value(self, key: str, val: Any, vtype: GGUFValueType, sub_type: GGUFValueType | None = None) -> None:
273-
# Disallow duplicate keys if they differ by value or type
273+
# Warn about duplicate keys if they differ by value or type
274274
if any(
275275
(
276276
key in kv_data

0 commit comments

Comments
 (0)