[Mlir-commits] [mlir] [MLIR] [Python] Added a context manager for enabling traceback-based locations (PR #157562)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Sep 9 00:48:35 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {darker}-->
:warning: Python code formatter, darker found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
darker --check --diff -r origin/main...HEAD mlir/python/mlir/ir.py
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from darker here.
</summary>
``````````diff
--- ir.py 2025-09-09 07:45:26.000000 +0000
+++ ir.py 2025-09-09 07:48:10.407880 +0000
@@ -6,13 +6,13 @@
from contextlib import contextmanager
from ._mlir_libs._mlir.ir import *
from ._mlir_libs._mlir.ir import _GlobalDebug
from ._mlir_libs._mlir import (
- register_type_caster,
- register_value_caster,
- globals,
+ register_type_caster,
+ register_value_caster,
+ globals,
)
from ._mlir_libs import (
get_dialect_registry,
append_load_on_create_dialect,
get_load_on_create_dialects,
``````````
</details>
https://github.com/llvm/llvm-project/pull/157562
More information about the Mlir-commits
mailing list