structured `void` dtypes
还没有人认领这个 Issue。
评估
调研方向
首先检查 void 标量和 numpy.lib.recfunctions 存根的现有 typing。定义可选的嵌套 .fields 映射以及可能的 .shape 应如何进行通用表示,然后更新相关的 recfunctions 类型。当 void 支持预期的精确 TypedDict 结构,且依赖的存根保持一致时,即可视为完成。
由索引模型根据 Issue 内容生成。
描述
The void scalar type should be made generic, with parameters bound to the (optional) nested field dtypes (.fields), and perhaps also its shape (.shape).
The fields type parameter should be bound to Mapping[str, tuple[dtype, int] | tuple[dtype, int, str]] | None, so that a TypedDict can be used to precisely specify the structure.
Note to self: Once implemented, be sure to also update the numpy.lib.recfunctions accordingly.
- 主要语言
- Python
- 星标
- 79
- 派生
- 8
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
numpy/numtype 的其他 Issue
-
topic: documentation
难度 2/5 1-3 小时 新手友好度 68/100
-
topic: documentation
难度 4/5 3-5 天 新手友好度 35/100
-
blame: Pyright tool: basedpyright
-
numpy.generic stubs: Incomplete
难度 3/5 1-2 天 新手友好度 35/100
-
_numtype stubs: Refactor
难度 3/5 1-2 天 新手友好度 45/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 86/100
browser-use/browser-use#5905 ·
-
type: enhancement
难度 2/5 1-3 小时 新手友好度 68/100
ynput/ayon-python-api#363 ·
-
bug needs triage
难度 2/5 1-3 小时 新手友好度 88/100
modelscope/FunASR#3728 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
open-compass/opencompass#2655 ·