File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1852,7 +1852,7 @@ def _sign_internal(
18521852 signer : Signer ,
18531853 format : str ,
18541854 source_stream : Stream ,
1855- dest_stream : Stream ) -> tuple [ int , bytes ] :
1855+ dest_stream : Stream ) -> bytes :
18561856 """Internal signing logic shared between sign() and sign_file() methods,
18571857 to use same native calls but expose different API surface.
18581858
@@ -1946,7 +1946,7 @@ def sign_file(self,
19461946 Path ],
19471947 dest_path : Union [str ,
19481948 Path ],
1949- signer : Signer ) -> tuple [ int , bytes ] :
1949+ signer : Signer ) -> bytes :
19501950 """Sign a file and write the signed data to an output file.
19511951
19521952 Args:
Original file line number Diff line number Diff line change 1+ python3 ./tests/test_unit_tests.py
Original file line number Diff line number Diff line change @@ -1568,6 +1568,8 @@ def test_sign_file(self):
15681568 "name" : "python_internals_test" ,
15691569 "version" : "0.0.1" ,
15701570 }],
1571+ # Claim version has become mandatory for signing v1 claims
1572+ "claim_version" : 1 ,
15711573 "format" : "image/jpeg" ,
15721574 "title" : "Python Test Signed Image" ,
15731575 "ingredients" : [],
You can’t perform that action at this time.
0 commit comments