[llvm] [mlir] [MLIR][Python] reland (narrower) type stub generation (PR #157930)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 19 20:53:00 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/_mlir_libs/__init__.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
--- __init__.py 2025-09-20 03:50:18.000000 +0000
+++ __init__.py 2025-09-20 03:52:29.208388 +0000
@@ -146,10 +146,11 @@
module_name = f"_site_initialize_{i}"
if not process_initializer_module(module_name):
break
ir._Context = ir.Context
+
class Context(ir._Context):
def __init__(
self, load_on_create_dialects=None, thread_pool=None, *args, **kwargs
):
super().__init__(*args, **kwargs)
``````````
</details>
https://github.com/llvm/llvm-project/pull/157930
More information about the llvm-commits
mailing list