Variance of bluesky protocols is not respected
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start by locating where blueapi checks generic argument compatibility for plan and device protocols such as Movable and Readable; the issue does not name a file or test. Compare the expected acceptance and rejection cases for contravariant and covariant protocols, then add coverage for those cases. Done means each protocol follows its declared variance, including the examples in the issue.
由索引模型根据 Issue 内容生成。
描述
Movable (and Preparable etc) are defined as contravariant but blueapi treats all generic args as covariant.
A plan defined as accepting a Movable[int] will accept a device that implements Movable[bool] where it should not and will block a Movable[float] where it should be accepted.
A plan defined as accepting a Readable[int] on the other hand should accept a Readable[bool] and reject a Readable[float] so it is not as simple as reversing the current checks.
- 主要语言
- Python
- 星标
- 14
- 派生
- 14
- 平均合并
- 2 天 23 小时
- 30 天内合并 PR
- 27
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
DiamondLightSource/blueapi 的其他 Issue
-
support: low
难度 2/5 1-3 小时 新手友好度 68/100
DiamondLightSource/blueapi#1772 · 2 条评论 ·
维护者通常 1 天内回复
-
deployment dev-environment
难度 2/5 1-3 小时 新手友好度 75/100
DiamondLightSource/blueapi#1623 · 2 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
DiamondLightSource/blueapi#1605 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100
DiamondLightSource/blueapi#1494 ·
维护者通常 1 天内回复
-
bug
难度 3/5 1-2 天 新手友好度 45/100
DiamondLightSource/blueapi#1788 ·
维护者通常 1 天内回复
查看 DiamondLightSource/blueapi 的全部 Issue
相似的 Issue
-
area: ci enhancement perceived difficulty: 1
难度 2/5 1-3 小时 新手友好度 74/100
Nitjsefnie-Harness-Commons/daedalus#1826 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
vllm-project/vllm-sail#398 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 65/100
DiamondLightSource/sm-bluesky#476 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
jenkinsci/user-guide-ai-chatbot-plugin#132 ·
维护者通常 6 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100