Skip to content

Commit 3788d17

Browse files
committed
fix: Clarify docs
1 parent dac4b31 commit 3788d17

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/c2pa/c2pa.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,9 @@ def __init__(self,
12141214
"""Create a new Reader.
12151215
12161216
Args:
1217-
format_or_path: The format or path to read from
1217+
format_or_path: The format or path to read from. For paths, we
1218+
will attempt to guess the mimetype of the source file
1219+
based on the extension.
12181220
stream: Optional stream to read from (Python stream-like object)
12191221
manifest_data: Optional manifest data in bytes
12201222
@@ -2283,7 +2285,9 @@ def sign_file(self,
22832285
"""Sign a file and write the signed data to an output file.
22842286
22852287
Args:
2286-
source_path: Path to the source file
2288+
source_path: Path to the source file. We will attempt
2289+
to guess the mimetype of the source file based on
2290+
the extension.
22872291
dest_path: Path to write the signed file to
22882292
signer: The signer to use
22892293

0 commit comments

Comments
 (0)