Skip to content

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

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions