What version (or hash if on master) of pybind11 are you using?
v2.13
Problem description
i define a method in a class and it works well when it's content is below:
but, as long as i add this line, it break and return nothing not even None type:
i troubleshoot the problem as follow, and it successfully print the number 0:
Reproducible example code
No response
Is this a regression? Put the last known working version here if it is.
Required prerequisites
What version (or hash if on master) of pybind11 are you using?
v2.13
Problem description
i define a method in a class and it works well when it's content is below:
but, as long as i add this line, it break and return nothing not even None type:
i troubleshoot the problem as follow, and it successfully print the number 0:
![image](https://github.com/pybind/pybind11/assets/22639359/ac2a1898-e17a-41f8-b407-e5a00b29b046)
Reproducible example code
No response
Is this a regression? Put the last known working version here if it is.
Not a regression