Skip to content

Conversation

@jl-wynen
Copy link
Member

Fixes #3709

This turns the reported error from

RuntimeError: Unable to cast Python instance of type <class 'list'> to C++ type '?'
  (#define PYBIND11_DETAILED_ERROR_MESSAGES or compile in debug mode for details)

into

RuntimeError: Unable to cast Python instance of type <class 'list'> to C++ type 'scipp::variable::Variable'

I do not see a difference in binary size for a release library on Linux.

@jl-wynen jl-wynen merged commit db9a0f7 into main May 26, 2025
4 checks passed
@jl-wynen jl-wynen deleted the pybind11-detailed-error-messages branch May 26, 2025 09:18
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.

Better pybind11 errors in release builds

3 participants