Skip to content

Conversation

GastonAQS
Copy link
Contributor

Updated the definition of c_bool constructor according to truth value testing. Now can receive objects that implement __bool__ or __len__ and None.

Fixes: #14823

Copy link
Contributor

github-actions bot commented Oct 6, 2025

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ctypes.c_bool(object) is not accepted
1 participant