Skip to content

Be more precise than generic Callable in type hints #199

Open
@benoit74

Description

@benoit74

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,

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions