Skip to content

Base class in a submodule, derived class in some other submodule. #538

Closed Answered by wjakob
andre-caldas asked this question in Q&A
Discussion options

You must be logged in to vote

I think that should be supported. You can give a Python object to nb::class_ to use as base, and you can use nb::module_::import_("..").attr("..") to fetch that object. Please refer to the documentation, this case is explained there somewhere.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@andre-caldas
Comment options

Answer selected by andre-caldas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants