Azure / Azure/MachineLearningNotebooks

Incorrect type hint for azure.ai.ml.sweep.Choice

未關閉 適合新手
#1,975 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Jupyter Notebook
星號
4.4k
分支
2.6k
PR 合併指標
30 天內沒有已合併 PR

描述

The definition of `azure.ai.ml.sweep.Choice` specifies `values: List[float | str | dict] | None` but the list type is invariant.
Normal usage would be to pass `values: list[str]`, for example, which results in a type error.
`List` should be replaced with `typing.Sequence` in this context

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

Search the Azure ML SDK definition of azure.ai.ml.sweep.Choice and inspect the values type hint. Replace the invariant list annotation with the requested sequence annotation, then verify that a list[str] value no longer produces a type error using the project's available type-checking or test workflow.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
azure, python
領域
machine-learning
Issue 類型
缺陷
難度
2/5
預估耗時
1-3 小時
活躍度
活躍
描述清晰度
基本清楚
新手友好度
72/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。