@@ -272,13 +272,13 @@ struct PyAttrBuilderMap {
272
272
static bool dunderContains (const std::string &attributeKind) {
273
273
return PyGlobals::get ().lookupAttributeBuilder (attributeKind).has_value ();
274
274
}
275
- static nb::callable dundeGetItemNamed (const std::string &attributeKind) {
275
+ static nb::callable dunderGetItemNamed (const std::string &attributeKind) {
276
276
auto builder = PyGlobals::get ().lookupAttributeBuilder (attributeKind);
277
277
if (!builder)
278
278
throw nb::key_error (attributeKind.c_str ());
279
279
return *builder;
280
280
}
281
- static void dundeSetItemNamed (const std::string &attributeKind,
281
+ static void dunderSetItemNamed (const std::string &attributeKind,
282
282
nb::callable func, bool replace) {
283
283
PyGlobals::get ().registerAttributeBuilder (attributeKind, std::move (func),
284
284
replace);
@@ -287,8 +287,8 @@ struct PyAttrBuilderMap {
287
287
static void bind (nb::module_ &m) {
288
288
nb::class_<PyAttrBuilderMap>(m, " AttrBuilder" )
289
289
.def_static (" contains" , &PyAttrBuilderMap::dunderContains)
290
- .def_static (" get" , &PyAttrBuilderMap::dundeGetItemNamed )
291
- .def_static (" insert" , &PyAttrBuilderMap::dundeSetItemNamed ,
290
+ .def_static (" get" , &PyAttrBuilderMap::dunderGetItemNamed )
291
+ .def_static (" insert" , &PyAttrBuilderMap::dunderSetItemNamed ,
292
292
" attribute_kind" _a, " attr_builder" _a, " replace" _a = false ,
293
293
" Register an attribute builder for building MLIR "
294
294
" attributes from python values." );
0 commit comments