Azure / Azure/azure-sdk-for-python
mldesigner (AML Python SDK V2) Violates Python Typing Spec
- Vorherrschende Sprache
- Python
- Sterne
- 5.6k
- Forks
- 3.4k
- Ø Merge
- 2 T.
- Gemergte PRs (30 T.)
- 217
Beschreibung
The AML Python SDK hijacks type-hints to decorate AML component inputs and outputs, but this violates the typing spec. Thus, IDEs give correct warnings.
See examples in the AML [documentation here](https://learn.microsoft.com/en-us/azure/machine-learning/how-to-create-component-pipeline-python?view=azureml-api-2#define-component-using-python-function).
See [discussion of same issue](https://github.com/microsoft/pylance-release/issues/5457) with Blender.

In the short term you should add `# type: ignore` annotations to the examples; and for at least V3, you should go back to taking both `inputs` and `outputs` `dict`s as an argument to the `command_component` decorator as in V1.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.