openzim / python-scraperlib

Collection of Python code to re-use across Python-based scrapers
GNU General Public License v3.0
18 stars 16 forks source link

Creator.add_item_for content param hint is incorrect #107

Closed rgaudin closed 11 months ago

rgaudin commented 11 months ago

zim.creator.Creator.add_item_for() accepts a content param declared as content: Optional[bytes] = None.

This is wrong as it also accepts str… and is used mostly using it.