[Bug] in Intermediate empty-tuple exercise
还没有人认领这个 Issue。
评估
调研方向
打开链接 URL 中的 Intermediate 空元组练习,并检查包含 foo((1)) 的示例。验证练习输入被解释为元组,并且其类型检查行为符合所述预期;当该示例不再错误地通过时,issue 即完成。
由索引模型根据 Issue 内容生成。
描述
Hi, I believe there is a bug in the in Intermediate empty-tuple exercise.
Relevant code:
foo((1)) # expect-type-error
(1) is not a tuple, but rather an integer, I believe a comma is missing. In effect, typing the function argument as tuple only will (incorrectly) pass the challenge.
Solution is to add a comma to make the argument a tuple:
foo((1,)) # expect-type-error
Thanks for providing fun and educative typing challenges.
- 主要语言
- Python
- 星标
- 628
- 派生
- 36
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
laike9m/Python-Type-Challenges 的其他 Issue
-
documentation
难度 1/5 1 小时以内 新手友好度 72/100
-
[Web] Use HTMX to random page.可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭performance
难度 3/5 1-2 天 新手友好度 45/100
laike9m/Python-Type-Challenges#104 · 3 条评论 ·
-
难度 3/5 1-2 天 新手友好度 42/100
laike9m/Python-Type-Challenges#88 · 6 条评论 ·
-
good first issue help wanted
难度 4/5 3-5 天 新手友好度 25/100
laike9m/Python-Type-Challenges#57 · 3 条评论 ·
-
good first issue help wanted
难度 5/5 一周以上 新手友好度 20/100
laike9m/Python-Type-Challenges#56 · 1 条评论 ·
查看 laike9m/Python-Type-Challenges 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
modelcontextprotocol/python-sdk#3648 ·
维护者通常 1 天内回复
-
docs good first issue
难度 2/5 1-3 小时 新手友好度 78/100
VenetoStato/giorgio#6 ·
-
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 70/100
EclipseFdn/open-vsx.org#13831 ·
维护者通常 1 天内回复