Azure / Azure/MachineLearningNotebooks
Incorrect type hint for azure.ai.ml.sweep.Choice
- Vorherrschende Sprache
- Jupyter Notebook
- Sterne
- 4.4k
- Forks
- 2.6k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- azure, python
- Bereich
- machine-learning
- Issue-Typ
- Bug
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Aktiv
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 72/100