Skip to content

How to expose custom type derived from pure python type #1170

@nico-meetprizm

Description

@nico-meetprizm

Issue description

My goal is to create a wrapper to the python default file type.
For that I created a C++ class (with no base class) and I want to expose it as a subclass of file. Which I cannot do as file isn't itself exported by pybind11.

Is there a way to support this pattern with this library (I couldn't find this workflow in the doc) ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions