Azure / Azure/MachineLearningNotebooks
Incorrect type hint for azure.ai.ml.sweep.Choice
- Linguagem predominante
- Jupyter Notebook
- Estrelas
- 4.4k
- Forks
- 2.6k
- Métricas de merge de PRs
- Nenhum PR com merge em 30d
Descrição
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
Guia de contribuição
Nenhum guia de contribuição indexado para este repositório
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- azure, python
- Domínio
- machine-learning
- Tipo de issue
- Bug
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Status de atividade
- Ativa
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 72/100