callback argument of zim.creater.Creator.add_item_for is reported by pyright as partially unknown when in strict mode due to the use of generic Callable.
This is a problem in projects setting pyright in strict mode.
The same generic Callable seems to be an issue in other parts of the code.
We should probably fix this with a more precise type hint,
callback
argument ofzim.creater.Creator.add_item_for
is reported by pyright as partially unknown when instrict
mode due to the use of genericCallable
.This is a problem in projects setting
pyright
in strict mode.The same generic
Callable
seems to be an issue in other parts of the code.We should probably fix this with a more precise type hint,