We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 390e29e commit f1c19acCopy full SHA for f1c19ac
src/pdl/pdl_dumper.py
@@ -257,7 +257,10 @@ def block_to_dict( # noqa: C901
257
d["msg"] = block.msg
258
if block.def_ is not None:
259
d["def"] = block.def_
260
- if not (block.contribute == [ContributeTarget.RESULT, ContributeTarget.CONTEXT] or block.contribute == [ContributeTarget.CONTEXT, ContributeTarget.RESULT]):
+ if block.contribute not in [
261
+ [ContributeTarget.RESULT, ContributeTarget.CONTEXT],
262
+ [ContributeTarget.CONTEXT, ContributeTarget.RESULT],
263
+ ]:
264
d["contribute"] = contribute_to_list(block.contribute)
265
if block.pdl__result is not None:
266
if isinstance(block.pdl__result, FunctionBlock):
0 commit comments