If we expose an mlir::Type to Python using mlir_type_subclass (like here), nanobind's stubgen does not create any output for that class. This is unlike functions using nb::class_ (like this example).
I believe that stubgen only creates typing information for a class if the type(.) of the class object is a subclass of type (according to this test), which isn't the case for how mlir_type_subclass currently works.