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 5caae72d1a4f58c9525977a93d86c3c833da4b34...b8dbd31b95058f8098f9ef57c540a1635a9a1fde lldb/test/API/python_api/sbvalue_synthetic/formatter.py lldb/test/API/python_api/sbvalue_synthetic/TestSBValueSynthetic.py `````````` </details> <details> <summary> View the diff from darker here. </summary> ``````````diff --- TestSBValueSynthetic.py 2023-12-19 08:37:20.000000 +0000 +++ TestSBValueSynthetic.py 2023-12-19 08:44:32.493393 +0000 @@ -11,11 +11,13 @@ self.build() lldbutil.run_to_source_breakpoint( self, "break here", lldb.SBFileSpec("main.cpp") ) self.runCmd("command script import formatter.py") - self.runCmd("type synthetic add --python-class formatter.FooSyntheticProvider Foo") + self.runCmd( + "type synthetic add --python-class formatter.FooSyntheticProvider Foo" + ) formatted = self.frame().FindVariable("foo") has_formatted = self.frame().FindVariable("has_foo") self.expect(str(formatted), exe=False, substrs=["synth_child"]) self.expect(str(has_formatted), exe=False, substrs=["synth_child"]) --- formatter.py 2023-12-19 08:37:20.000000 +0000 +++ formatter.py 2023-12-19 08:44:32.506490 +0000 @@ -4,11 +4,11 @@ class FooSyntheticProvider: def __init__(self, valobj, dict): target = valobj.GetTarget() data = lldb.SBData.CreateDataFromCString(lldb.eByteOrderLittle, 8, "S") self._child = valobj.CreateValueFromData( - "synth_child", data, target.GetBasicType(lldb.eBasicTypeChar) + "synth_child", data, target.GetBasicType(lldb.eBasicTypeChar) ) def num_children(self): return 1 `````````` </details> https://github.com/llvm/llvm-project/pull/75908 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits