inducer / inducer/arraycontext
Sharpen type annotation of `_get_arg_id_to_arg_and_arg_id_to_descr`
未關閉
- 主要語言
- Python
- 星號
- 9
- 分支
- 11
- 平均合併
- 17 小時 12 分鐘
- 30 天內合併 PR
- 2
描述
According to the type listed `args: tuple[Any, ...]`, args should be able to support an object type. However, it does not. Passing in an object that is not an `pt.Array` or `scalar` or `ArrayContainer` returns an error message. I think we should just return the descriptor as the position of the object within the `args` tuple.
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
找到 `_get_arg_id_to_arg_and_arg_id_to_descr`,檢查它如何處理 `args` tuple 中的項目,尤其是既不是 `pt.Array`、`scalar` 也不是 `ArrayContainer` 的物件。確認對一般物件的預期行為,接著讓 descriptor 使用該物件在 `args` 中的位置,並驗證回報的錯誤不再發生。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- backend
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100