CLI tests fail with Typer 0.27.2
评估
调研方向
从tests/cli/test_cli.py开始,检查当前使用click的导入和组断言。将它们更新为使用typer.core.TyperGroup,然后运行 CLI 测试,并确认使用 Typer 0.27.2 时测试能够被收集且通过。
由索引模型根据 Issue 内容生成。
描述
Description
tests/cli/test_cli.py fails to collect with Typer 0.27.2, which vendors Click. The test still imports click and uses click.Group in its group assertion.
Version
6.1.1
Additional information
The error is
ModuleNotFoundError: No module named 'click'
Using typer.core.TyperGroup for the import and assertion fixes the issue.
- 主要语言
- Python
- 星标
- 36
- 派生
- 6
- 平均合并
- 5 小时 1 分钟
- 30 天内合并 PR
- 1
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
frenck/python-elgato 的其他 Issue
-
no-stale
难度 2/5 1-3 小时 新手友好度 25/100
frenck/python-elgato#724 ·
查看 frenck/python-elgato 的全部 Issue
相似的 Issue
-
docs(contributing): the two things that silently block a PR可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭available documentation good first issue
难度 1/5 1-3 小时 新手友好度 95/100
Nixitov/Riptide-Native#944 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 88/100
JTHCode/secretguard#24 ·
维护者通常 1 天内回复
-
area: middleware documentation good first issue
难度 2/5 1-3 小时 新手友好度 88/100
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
good first issue
难度 1/5 1 小时以内 新手友好度 95/100
omarelshamy25x/shamy-hijri#63 ·
维护者通常 1 天内回复