change the `datetime64` and `timedelta64` type-parameter default to `Any`
还没有人认领这个 Issue。
评估
调研方向
首先定位 datetime64 和 timedelta64 类型参数的 numpy-stubs 定义,然后查看链接的 NumPy issue 讨论,以了解预期的类型检查行为和兼容性问题。完成的标准是:在 stubs 中将默认值改为 Any,同时不为 mypy 用户引入所提议的 breaking change。
由索引模型根据 Issue 内容生成。
描述
This was suggested by @randolf-scholz in https://github.com/numpy/numpy/issues/28257#issuecomment-2646551727. It might accidentally cause breaking changes for mypy users (see https://github.com/numpy/numpy/issues/28257#issuecomment-2646563705). So it's best to implement this in numpy-stubs instead (which we plan to merge into numpy at some point).
- 主要语言
- 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
-
agent-ready documentation needs-triage
难度 1/5 1-3 小时 新手友好度 88/100
-
documentation
难度 1/5 1 小时以内 新手友好度 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" 未关闭
难度 1/5 1 小时以内 新手友好度 92/100
-
instance instance add
难度 1/5 1 小时以内 新手友好度 72/100
searxng/searx-instances#939 · 1 条评论 ·
-
area-deployment area-integrations triage:bot-seen
难度 2/5 半天 新手友好度 86/100