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
lldb/test/API/python_api/type/TestTypeList.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
--- TestTypeList.py 2026-06-19 12:21:21.000000 +0000
+++ TestTypeList.py 2026-06-19 12:29:36.994124 +0000
@@ -231,19 +231,20 @@
self._find_static_field_in_Task_pointer(
frame0.EvaluateExpression("task_head").GetType()
)
# Check FindDirectNestedType on dynamic values
- polymorphic =
frame0.FindVariable("polymorphic").GetDynamicValue(lldb.eDynamicDontRunTarget)
+ polymorphic = frame0.FindVariable("polymorphic").GetDynamicValue(
+ lldb.eDynamicDontRunTarget
+ )
self.DebugSBValue(polymorphic)
polymorphic_type = polymorphic.GetType().GetPointeeType()
self.DebugSBType(polymorphic_type)
self.assertFalse(polymorphic_type.FindDirectNestedType("Nested",
False))
nested = polymorphic_type.FindDirectNestedType("Nested", True)
self.DebugSBType(nested)
self.assertEqual(nested.GetName(), "PolymorphicDerived::Nested")
-
# We'll now get the child member 'id' from 'task_head'.
id = task_head.GetChildMemberWithName("id")
self.DebugSBValue(id)
id_type = id.GetType()
``````````
</details>
https://github.com/llvm/llvm-project/pull/204811
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits