)]}'
{
  "commit": "ac3feed1b24389efbc0865b742be1854be0406dc",
  "tree": "f9d87c81d249645f42086cf62d261413fd04f995",
  "parents": [
    "10d5a65d1a6c0308145352f31157628b9643c942"
  ],
  "author": {
    "name": "Yuxuan \u0027fishy\u0027 Wang",
    "email": "yuxuan.wang@reddit.com",
    "time": "Tue Sep 17 09:53:02 2024 -0700"
  },
  "committer": {
    "name": "Jens Geyer",
    "email": "Jens-G@users.noreply.github.com",
    "time": "Sun Nov 23 14:43:12 2025 +0100"
  },
  "message": "Fix python compiler generated all_structs with type_hints\n\nCurrently with type_hints enabled, we do not explicitly declare the type\nof generated all_structs. It\u0027s meant to be a list of different types,\nbut that will cause problems, as the generated code is usually like\nthis:\n\n    all_structs \u003d []\n    ...\n    all_structs.append(Type1)\n    ...\n    all_structs.append(Type2)\n    ...\n\nThe first append infers the type of all_struct to be list[Type1], so\nmypyc would start complaining from the 2nd append as the type is\nunexpected.\n\nExplicitly declare all_struct to be list[typing.Any] instead, which\nfixes the issue.\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b86f870dd94b7d8de85f4ee493187edc469e0458",
      "old_mode": 33188,
      "old_path": "compiler/cpp/src/thrift/generate/t_py_generator.cc",
      "new_id": "06bd17bb68f1d518cd2dda93f4bf58f7c27dc475",
      "new_mode": 33188,
      "new_path": "compiler/cpp/src/thrift/generate/t_py_generator.cc"
    }
  ]
}
