Unverified Commit cb60ed49 authored by Ye Zhihao's avatar Ye Zhihao Committed by GitHub
Browse files

Fix enum value's __int__ returning non-int when underlying type is bool or of char type (#1334)



* Use equivalent_integer for enum's Scalar decision

* Add test for char underlying enum

* Support translating bool type in enum's Scalar

* Add test for bool underlying enum

* Fix comment in test

* Switch from `PYBIND11_CPP20` macro to `PYBIND11_HAS_U8STRING`

* Refine tests

Co-authored-by: default avatarAaron Gokaslan <skylion.aaron@gmail.com>
parent 930bb16c
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment