Skip to content

Commit 7453f06

Browse files
authored
Merge pull request #108 from AmirAflak/patch-1
fix: #107 to handle string type
2 parents 018a1fa + 23da5ce commit 7453f06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zimscraperlib/zim/creator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def add_item_for(
237237
path: str,
238238
title: Optional[str] = None,
239239
fpath: Optional[pathlib.Path] = None,
240-
content: Optional[bytes] = None,
240+
content: Optional[Union[bytes, str]] = None,
241241
mimetype: Optional[str] = None,
242242
is_front: Optional[bool] = None,
243243
should_compress: Optional[bool] = None,

0 commit comments

Comments
 (0)