ofek · GitHub

aleksandr.tseluyko

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

ofek

approved these changes Apr 9, 2026

aleksandr.tseluyko added 2 commits

April 10, 2026 09:42

aleksandr.tseluyko

aleksandr.tseluyko

This was referenced

Apr 10, 2026

Open

Open

@Siyet

@Siyet Siyet mentioned this pull request

Apr 10, 2026

Open

aleksandr.tseluyko

@Siyet Siyet mentioned this pull request

Apr 11, 2026

Closed

17 tasks

aleksandr.tseluyko added 2 commits

April 12, 2026 23:07

aleksandr.tseluyko

Include MS_TYPE_BOOLLITERAL_TRUE/FALSE in the bool check so error
messages like 'Expected ``, got `int`' correctly show 'bool'.

aleksandr.tseluyko

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 Siyet mentioned this pull request

Apr 12, 2026

Closed

@Siyet

@Siyet

@Siyet Siyet mentioned this pull request

Jul 2, 2026

Merged

Read the original on github.com ↗