Check for pseudo-Protocols in argument types
评估
调研方向
该 issue 未指定任何文件、测试或入口点。首先定位相关的参数类型检查和 opt-in 警告配置;当针对 Sequence 和 Mapping 等伪协议发出警告,同时允许通过 # noqa 注释确认有意使用时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
There are a few ABCs that look deceptively like protocols, but aren't, for example Sequence or Mapping. We usually have good protocol alternatives for these in typeshed, but it's easy to slip in one of these pseudo-protocols by accident. Edit: It makes sense to at least explicitly acknowledge the intentional use of these by adding a # noqa comment.
We should warn about using these in argument types, but probably as an opt-in warning (which we could eventually enable in typeshed).
- 主要语言
- Python
- 星标
- 84
- 派生
- 26
- 平均合并
- 1 天 19 小时
- 30 天内合并 PR
- 3
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PyCQA/flake8-pyi 的其他 Issue
-
Remove Y011 (only simple defaults)可能已有人在做 @Khabib73 于 2 天前认领。 未关闭type-feature
难度 2/5 1-3 小时 新手友好度 65/100
PyCQA/flake8-pyi#559 · 1 条评论 ·
-
Enforce order of `(complex |) float | int` (or vice versa)可能已有人在做 @Khabib73 于 2 天前认领。 未关闭type-feature
难度 3/5 1-2 天 新手友好度 45/100
PyCQA/flake8-pyi#560 · 3 条评论 · 已指派 1 人 ·
-
type-bug
难度 3/5 1-2 天 新手友好度 45/100
PyCQA/flake8-pyi#533 ·
-
Extract ast helpers可能重新可做 @srittau 于 402 天前认领,目前没有进行中的 PR。 未关闭type-refactoring
PyCQA/flake8-pyi#529 · 1 条评论 · 3 个 reaction · 已指派 1 人 ·
-
type-feature
难度 3/5 1-2 天 新手友好度 42/100
PyCQA/flake8-pyi#499 · 1 个 reaction ·
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
mloda-ai/mloda-plugin-template#206 ·
维护者通常 1 天内回复
-
integration: websocket_api
难度 2/5 1-3 小时 新手友好度 70/100
home-assistant/core#194618 · 2 条评论 ·
维护者通常 1 天内回复
-
Shorten and organize the README around reader tasks可能已有人在做 @msaad00 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 62/100
-
难度 2/5 1-3 小时 新手友好度 62/100
5hyuns/maya-workflow-kit-for-blender#568 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 80/100
letsrevel/revel-backend#1558 ·
维护者通常 1 天内回复