Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
friggog opened this issue Nov 15, 2024 · 0 comments
Open

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

friggog opened this issue Nov 15, 2024 · 0 comments

Comments

@friggog
Copy link

friggog commented Nov 15, 2024

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

@friggog friggog changed the title Incorrect type hints for Choice Incorrect type hin0t for azure.ai.ml.sweep.Choice Nov 15, 2024
@friggog friggog changed the title Incorrect type hin0t for azure.ai.ml.sweep.Choice Incorrect type hint for azure.ai.ml.sweep.Choice Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant