How to access derived type at runtime with pybind11?
I have a Base
and a Derived
class in C++ for which I create Python-bindings with pybind11
. The base class implements a function (__repr__
) in which I want to access the runtime type name of self
. However, the way I do it, it just provides me the base type: