Skip to content
This repository was archived by the owner on Oct 11, 2025. It is now read-only.

Commit 0b153b8

Browse files
authored
[mlir][python] disable nanobind leak warnings (#121099)
1 parent 190b37f commit 0b153b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

IRCore.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2587,6 +2587,8 @@ class PyOpAttributeMap {
25872587
//------------------------------------------------------------------------------
25882588

25892589
void mlir::python::populateIRCore(nb::module_ &m) {
2590+
// disable leak warnings which tend to be false positives.
2591+
nb::set_leak_warnings(false);
25902592
//----------------------------------------------------------------------------
25912593
// Enums.
25922594
//----------------------------------------------------------------------------

0 commit comments

Comments
 (0)