Closed benoit74 closed 4 months ago
Type hints on convert_image function are way too restrictive, it looks like src and dst can as well be io.BytesIO and probably many other types.
convert_image
src
dst
io.BytesIO
See https://github.com/openzim/warc2zim/blob/3b3ec7d7d9f19dc797afebadf3b7326de4d372c2/src/warc2zim/converter.py#L456 for a sample usage where the type checker complains.
Duplicate of #112
Type hints on
convert_image
function are way too restrictive, it looks likesrc
anddst
can as well beio.BytesIO
and probably many other types.See https://github.com/openzim/warc2zim/blob/3b3ec7d7d9f19dc797afebadf3b7326de4d372c2/src/warc2zim/converter.py#L456 for a sample usage where the type checker complains.