openzim / openzim/python-scraperlib
Be more precise than generic `Callable` in type hints
未关闭
@benoit74 已经在做这个了。
开始于 2024年11月14日。
enhancement
- 主要语言
- Python
- 星标
- 31
- 派生
- 27
- 平均合并
- 3 天 7 小时
- 30 天内合并 PR
- 2
描述
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,
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
评估
这个 Issue 还没有评估数据。