We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e0e1b7 commit 78290d4Copy full SHA for 78290d4
src/jwkest/jws.py
@@ -695,8 +695,8 @@ def is_jws(self, jws):
695
return self._is_compact_jws(jws)
696
697
def _is_json_serialized_jws(self, json_jws):
698
- json_ser_keys = {"payload", "signatures"}
699
- flattened_json_ser_keys = {"payload", "signature"}
+ json_ser_keys = set(["payload", "signatures"])
+ flattened_json_ser_keys = set[("payload", "signature")]
700
if not json_ser_keys.issubset(
701
json_jws.keys()) and not flattened_json_ser_keys.issubset(
702
json_jws.keys()):
0 commit comments