Skip to content

Commit f1c19ac

Browse files
committed
Formatting
Signed-off-by: Louis Mandel <[email protected]>
1 parent 390e29e commit f1c19ac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/pdl/pdl_dumper.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,10 @@ def block_to_dict( # noqa: C901
257257
d["msg"] = block.msg
258258
if block.def_ is not None:
259259
d["def"] = block.def_
260-
if not (block.contribute == [ContributeTarget.RESULT, ContributeTarget.CONTEXT] or block.contribute == [ContributeTarget.CONTEXT, ContributeTarget.RESULT]):
260+
if block.contribute not in [
261+
[ContributeTarget.RESULT, ContributeTarget.CONTEXT],
262+
[ContributeTarget.CONTEXT, ContributeTarget.RESULT],
263+
]:
261264
d["contribute"] = contribute_to_list(block.contribute)
262265
if block.pdl__result is not None:
263266
if isinstance(block.pdl__result, FunctionBlock):

0 commit comments

Comments
 (0)