From e9c914f4b0b9712cec5d422a70ec79593a738868 Mon Sep 17 00:00:00 2001 From: Brian Morton Date: Fri, 22 Aug 2025 06:51:37 -0700 Subject: [PATCH] Change return type of signing method to bytes This fixes an issue with static analysis since the function actually returns bytes now --- src/c2pa/c2pa.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/c2pa/c2pa.py b/src/c2pa/c2pa.py index 5795f6be..0826793b 100644 --- a/src/c2pa/c2pa.py +++ b/src/c2pa/c2pa.py @@ -1893,7 +1893,7 @@ def _sign_internal( signer: Signer, format: str, source_stream: Stream, - dest_stream: Stream) -> tuple[int, bytes]: + dest_stream: Stream) -> bytes: """Internal signing logic shared between sign() and sign_file() methods, to use same native calls but expose different API surface. @@ -1904,7 +1904,7 @@ def _sign_internal( dest_stream: The destination stream Returns: - A tuple of (size of C2PA data, manifest bytes) + Manifest bytes Raises: C2paError: If there was an error during signing