Azure / Azure/azure-sdk-for-python

mldesigner (AML Python SDK V2) Violates Python Typing Spec

オープン
#39,098 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

@kshitij-microsoft がすでに取り組んでいます。

2025年1月17日 から。

Client customer-reported feature-request Machine Learning needs-team-attention Service Attention
主要言語
Python
スター
5.6k
フォーク
3.4k
平均マージ
2日 2時間
マージ済み PR(30日)
213

説明

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.

![Image](https://github.com/user-attachments/assets/bbd38738-3d76-45b1-99d5-6e7a2fa2d6b1)

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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。