Whole file

keleshev/schema

The author described this change as Fix TypeError when building the key error message for a tuple key. It counts as a record because the check below fails on the code as it stood at 340d3f059 and passes on d81871b86, with nothing else changed between the two runs.

Fix saved2026-06-13
Sharing licenceMIT · LICENSE-MIT
Change size+1 1

What the code was meant to do, written into the code itself as a save note

Fix TypeError when building the key error message for a tuple key

The change

494494 svalue, error=e, ignore_extra_keys=i
495495 ).validate(value, **kwargs)
496496 except SchemaError as x:
497- k = "Key '%s' error:" % nkey
497+ k = "Key '%s' error:" % (nkey,)
498498 message = self._prepend_schema_name(k)
499499 raise SchemaError(
500500 [message] + x.autos,

The check that tells the two apart

failpass·test_schema.py::test_tuple_key_error_message_does_not_crash

Check file test_schema.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.

Origin and history

The code before it340d3f0596b985db9e7c81a1233f784648d7c101
Broken version dated2026-03-04
Moduleschema.__init__
Units changedSchema
Fingerprinta4789c2c52dc66a0
Checked2026-08-18 by goldset/0.1

Every field above is generated by our program. None of it is written by hand.

Other bugs found in keleshev/schema