[Mlir-commits] [mlir] [MLIR] [Python] a few more fixes to type annotaitons (PR #186106)
Sergei Lebedev
llvmlistbot at llvm.org
Thu Mar 12 09:59:15 PDT 2026
================
@@ -1313,12 +1314,17 @@ class MLIR_PYTHON_API_EXPORTED PySymbolTable {
};
/// Custom exception that allows access to error diagnostic information. This is
-/// converted to the `ir.MLIRError` python exception when thrown.
-struct MLIR_PYTHON_API_EXPORTED MLIRError {
+/// translated to the `ir.MLIRError` python exception when thrown.
+struct MLIR_PYTHON_API_EXPORTED MLIRError : std::exception {
----------------
superbobry wrote:
We hide them in the `__dict__` of a PyObject, actually.
https://github.com/llvm/llvm-project/pull/186106
More information about the Mlir-commits
mailing list