This is an archive of the discontinued LLVM Phabricator instance.

[mlir][python] Add a __contains__ method to the python bindings for DictionaryAttr.
ClosedPublic

Authored by akuegel on Oct 29 2021, 6:11 AM.

Details

Summary

This makes it easier to check in python whether a certain attribute is there.

Diff Detail

Event Timeline

akuegel created this revision.Oct 29 2021, 6:11 AM
akuegel requested review of this revision.Oct 29 2021, 6:11 AM
akuegel retitled this revision from Add a __contains__ method to the python bindings for DictionaryAttr. to [mlir][python] Add a __contains__ method to the python bindings for DictionaryAttr..Oct 29 2021, 6:12 AM
ftynse accepted this revision.Oct 29 2021, 6:14 AM

Thanks!

This revision is now accepted and ready to land.Oct 29 2021, 6:14 AM
This revision was landed with ongoing or failed builds.Oct 29 2021, 6:19 AM
This revision was automatically updated to reflect the committed changes.