Azure / Azure/MachineLearningNotebooks

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

Aperta
#1,975 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Jupyter Notebook
Stelle
4.4k
Fork
2.6k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.