diff --git a/mlir/python/mlir/ir.py b/mlir/python/mlir/ir.py index d86298a72c6f..710d9601f544 100644 --- a/mlir/python/mlir/ir.py +++ b/mlir/python/mlir/ir.py @@ -46,7 +46,7 @@ def get_parent_of_type(op: OpView | Operation, op_class: type[OpView]) -> OpView @contextmanager -def loc_tracebacks(*, max_depth: int | None = None) -> Generator[None]: +def loc_tracebacks(*, max_depth: int | None = None) -> Generator[None, None, None]: """Enables automatic traceback-based locations for MLIR operations. Operations created within this context will have their location