Add MS_TYPE_BOOLLITERAL_TRUE/FALSE flags and handle PyBool_Type before PyLong_Type in typenode_collect_literal. Update decode paths (JSON, msgpack, convert) to validate against specific bool literal values. Closes #859
approved these changes Apr 9, 2026
aleksandr.tseluyko added 2 commits
April 10, 2026 09:42
This was referenced
Apr 10, 2026Open
Open
Siyet
mentioned this pull request
Open
aleksandr.tseluyko added 2 commits
April 12, 2026 23:07
Include MS_TYPE_BOOLLITERAL_TRUE/FALSE in the bool check so error messages like 'Expected ``, got `int`' correctly show 'bool'.
Cover json_decode_true/false and convert_bool with Literal[True], Literal[False], mixed types, and error message assertions including the typenode_simple_repr fix.
Siyet
mentioned this pull request
Closed
Siyet
mentioned this pull request
Merged