@@ -104,8 +104,10 @@ NB_MODULE(_mlir, m) {
104104 return opClass;
105105 });
106106 },
107- nb::sig (" def register_operation(dialect_class: type, *, "
108- " replace: bool = False) -> typing.Callable[[type[T]], type[T]]" ),
107+ // clang-format off
108+ nb::sig (" def register_operation(dialect_class: type, *, replace: bool = False) "
109+ " -> typing.Callable[[type[T]], type[T]]" ),
110+ // clang-format on
109111 " dialect_class" _a, nb::kw_only (), " replace" _a = false ,
110112 " Produce a class decorator for registering an Operation class as part of "
111113 " a dialect" );
@@ -118,10 +120,10 @@ NB_MODULE(_mlir, m) {
118120 return typeCaster;
119121 });
120122 },
121- nb::sig ( " def register_type_caster(typeid: _mlir.ir.TypeID, *, "
122- " replace: bool = False) "
123- " -> typing.Callable[[typing.Callable[[T], U]], "
124- " typing.Callable[[T], U]] " ),
123+ // clang-format off
124+ nb::sig ( " def register_type_caster(typeid: _mlir.ir.TypeID, *, replace: bool = False) "
125+ " -> typing.Callable[[typing.Callable[[T], U]], typing.Callable[[T], U]] " ),
126+ // clang-format on
125127 " typeid" _a, nb::kw_only (), " replace" _a = false ,
126128 " Register a type caster for casting MLIR types to custom user types." );
127129 m.def (
@@ -134,10 +136,10 @@ NB_MODULE(_mlir, m) {
134136 return valueCaster;
135137 });
136138 },
137- nb::sig ( " def register_value_caster(typeid: _mlir.ir.TypeID, *, "
138- " replace: bool = False) "
139- " -> typing.Callable[[typing.Callable[[T], U]], "
140- " typing.Callable[[T], U]] " ),
139+ // clang-format off
140+ nb::sig ( " def register_value_caster(typeid: _mlir.ir.TypeID, *, replace: bool = False) "
141+ " -> typing.Callable[[typing.Callable[[T], U]], typing.Callable[[T], U]] " ),
142+ // clang-format on
141143 " typeid" _a, nb::kw_only (), " replace" _a = false ,
142144 " Register a value caster for casting MLIR values to custom user values." );
143145
0 commit comments