Skip to content

Use py::type::handle_of instead of obj.get_type#4

Open
FlyingSamson wants to merge 1 commit into
dlr-sp:mainfrom
FlyingSamson:use-handle_of-instead-of-get_type
Open

Use py::type::handle_of instead of obj.get_type#4
FlyingSamson wants to merge 1 commit into
dlr-sp:mainfrom
FlyingSamson:use-handle_of-instead-of-get_type

Conversation

@FlyingSamson

Copy link
Copy Markdown

obj.get_type has been deprecated in pybind11 version 2.6 and raises compile time warnings starting in version 3.0.

This switches to the recommended alternative py::type::of(obj).

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.

1 participant