File tree 2 files changed +6
-5
lines changed 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -93,14 +93,14 @@ class Key:
93
93
key : PublicKey
94
94
key_id : KeyID
95
95
96
- _RSA_SHA_256_DETAILS : ClassVar [ set [ _PublicKeyDetails ]] = {
96
+ _RSA_SHA_256_DETAILS : ClassVar = {
97
97
_PublicKeyDetails .PKCS1_RSA_PKCS1V5 ,
98
98
_PublicKeyDetails .PKIX_RSA_PKCS1V15_2048_SHA256 ,
99
99
_PublicKeyDetails .PKIX_RSA_PKCS1V15_3072_SHA256 ,
100
100
_PublicKeyDetails .PKIX_RSA_PKCS1V15_4096_SHA256 ,
101
101
}
102
102
103
- _EC_DETAILS_TO_HASH : ClassVar [ dict [ _PublicKeyDetails , hashes . HashAlgorithm ]] = {
103
+ _EC_DETAILS_TO_HASH : ClassVar = {
104
104
_PublicKeyDetails .PKIX_ECDSA_P256_SHA_256 : hashes .SHA256 (),
105
105
_PublicKeyDetails .PKIX_ECDSA_P384_SHA_384 : hashes .SHA384 (),
106
106
_PublicKeyDetails .PKIX_ECDSA_P521_SHA_512 : hashes .SHA512 (),
Original file line number Diff line number Diff line change @@ -667,9 +667,10 @@ def _from_parts(
667
667
668
668
# Fill in the appropriate variants.
669
669
if isinstance (content , common_v1 .MessageSignature ):
670
- content = {"message_signature" : content }
670
+ # mypy will be mystified if types are specified here
671
+ content_dict : dict [str , Any ] = {"message_signature" : content }
671
672
else :
672
- content = {"dsse_envelope" : content ._inner }
673
+ content_dict = {"dsse_envelope" : content ._inner }
673
674
674
675
inner = _Bundle (
675
676
media_type = Bundle .BundleType .BUNDLE_0_3 .value ,
@@ -678,7 +679,7 @@ def _from_parts(
678
679
tlog_entries = [log_entry ._to_rekor ()],
679
680
timestamp_verification_data = timestamp_verifcation_data ,
680
681
),
681
- ** content ,
682
+ ** content_dict ,
682
683
)
683
684
684
685
return cls (inner )
You can’t perform that action at this time.
0 commit comments