Skip to content

Commit 6f7e8d3

Browse files
authored
fix: Change return type of signing method to bytes (#143)
This fixes an issue with static analysis since the function actually returns bytes now
1 parent 8297a9a commit 6f7e8d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/c2pa/c2pa.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1893,7 +1893,7 @@ def _sign_internal(
18931893
signer: Signer,
18941894
format: str,
18951895
source_stream: Stream,
1896-
dest_stream: Stream) -> tuple[int, bytes]:
1896+
dest_stream: Stream) -> bytes:
18971897
"""Internal signing logic shared between sign() and sign_file() methods,
18981898
to use same native calls but expose different API surface.
18991899
@@ -1904,7 +1904,7 @@ def _sign_internal(
19041904
dest_stream: The destination stream
19051905
19061906
Returns:
1907-
A tuple of (size of C2PA data, manifest bytes)
1907+
Manifest bytes
19081908
19091909
Raises:
19101910
C2paError: If there was an error during signing

0 commit comments

Comments
 (0)