)]}'
{
  "commit": "cd58859fa7ddf14d88df507779c4fc085738da55",
  "tree": "f891afa7e6c74c666e2bf9553a6e0af780d3716f",
  "parents": [
    "559d5e4843da87fbf1c000876ec75b596bf2f8f4"
  ],
  "author": {
    "name": "Twice",
    "email": "twice@apache.org",
    "time": "Tue Sep 16 11:16:28 2025 +0800"
  },
  "committer": {
    "name": "Copybara-Service",
    "email": "copybara-worker@google.com",
    "time": "Mon Sep 15 20:18:54 2025 -0700"
  },
  "message": "[MLIR][Python] Add docstring for generated python op classes (#158198)\n\nThis PR adds support in mlir-tblgen for generating docstrings for each\nPython class corresponding to an MLIR op. The docstrings are currently\nderived from the op’s description in ODS, with indentation adjusted to\ndisplay nicely in Python. This makes it easier for Python users to see\nthe op descriptions directly in their IDE or LSP while coding.\n\nIn the future, we can extend the docstrings to include explanations for\neach method, attribute, and so on.\n\nThis idea was previously discussed in the `#mlir-python` channel on\nDiscord with @makslevental and @superbobry.\n\n---------\n\nCo-authored-by: Maksim Levental \u003cmaksim.levental@gmail.com\u003e\nGitOrigin-RevId: 10d0d955e22be43abab8fe7e339e99068aaac030\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "90feec9ed8d6b575307586824575695f1678a4c0",
      "old_mode": 33188,
      "old_path": "test/mlir-tblgen/op-python-bindings.td",
      "new_id": "81a4b2bbd1631696d0b5bfacce56c0f6e55878de",
      "new_mode": 33188,
      "new_path": "test/mlir-tblgen/op-python-bindings.td"
    },
    {
      "type": "modify",
      "old_id": "a063aa972cc487a5c93901998f3182adc0053279",
      "old_mode": 33188,
      "old_path": "test/python/ir/auto_location.py",
      "new_id": "83168901341a8635986604680c2dba40c30faf67",
      "new_mode": 33188,
      "new_path": "test/python/ir/auto_location.py"
    },
    {
      "type": "modify",
      "old_id": "21f712e85e6c0a0f5c002de27e293ebef5794759",
      "old_mode": 33188,
      "old_path": "tools/mlir-tblgen/OpPythonBindingGen.cpp",
      "new_id": "169d550f448505e5bb91725f4745096f256f331c",
      "new_mode": 33188,
      "new_path": "tools/mlir-tblgen/OpPythonBindingGen.cpp"
    }
  ]
}
