Skip to content

Commit a0f5bbc

Browse files
authored
Fixed typo in dunder get/set methods in PyAttrBuilderMap (#121794)
Description: - fixed a typo in the method name: dunde -> dunder
1 parent 96f8cfe commit a0f5bbc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mlir/lib/Bindings/Python/IRCore.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,13 +272,13 @@ struct PyAttrBuilderMap {
272272
static bool dunderContains(const std::string &attributeKind) {
273273
return PyGlobals::get().lookupAttributeBuilder(attributeKind).has_value();
274274
}
275-
static nb::callable dundeGetItemNamed(const std::string &attributeKind) {
275+
static nb::callable dunderGetItemNamed(const std::string &attributeKind) {
276276
auto builder = PyGlobals::get().lookupAttributeBuilder(attributeKind);
277277
if (!builder)
278278
throw nb::key_error(attributeKind.c_str());
279279
return *builder;
280280
}
281-
static void dundeSetItemNamed(const std::string &attributeKind,
281+
static void dunderSetItemNamed(const std::string &attributeKind,
282282
nb::callable func, bool replace) {
283283
PyGlobals::get().registerAttributeBuilder(attributeKind, std::move(func),
284284
replace);
@@ -287,8 +287,8 @@ struct PyAttrBuilderMap {
287287
static void bind(nb::module_ &m) {
288288
nb::class_<PyAttrBuilderMap>(m, "AttrBuilder")
289289
.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,
292292
"attribute_kind"_a, "attr_builder"_a, "replace"_a = false,
293293
"Register an attribute builder for building MLIR "
294294
"attributes from python values.");

0 commit comments

Comments
 (0)