Skip to content

Commit e998b49

Browse files
committed
fix: format by flake8
1 parent 09bb19e commit e998b49

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

cwt/utils.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,11 @@ def to_cis(context: Dict[str, Any], recipient_alg: Optional[int] = None) -> List
122122
if "alg" not in context:
123123
raise ValueError("alg not found.")
124124
# if context["alg"] not in COSE_NAMED_ALGORITHMS_SUPPORTED:
125-
if context["alg"] not in COSE_ALGORITHMS_CEK and context["alg"] not in COSE_ALGORITHMS_MAC and context["alg"] not in COSE_ALGORITHMS_KEY_WRAP:
125+
if (
126+
context["alg"] not in COSE_ALGORITHMS_CEK
127+
and context["alg"] not in COSE_ALGORITHMS_MAC
128+
and context["alg"] not in COSE_ALGORITHMS_KEY_WRAP
129+
):
126130
raise ValueError(f'Unsupported or unknown alg for context information: {context["alg"]}.')
127131
alg = COSE_NAMED_ALGORITHMS_SUPPORTED[context["alg"]]
128132
res.append(alg)

0 commit comments

Comments
 (0)