Skip to content

Conversation

@github-actions
Copy link

This PR fixes an inconsistency in the assets.rst documentation example.
The sample code used a plain string for the alias argument in Metadata(), which in reality raises:

TypeError: Key should be either an asset or an asset alias, not <class 'str'>

This change updates the example to use a typed AssetAlias("my-task-outputs"), matching the SDK API and avoiding that error.
(cherry picked from commit ed67114)

Co-authored-by: QBidolet 52286815+QBidolet@users.noreply.github.com

…a` example (#50768)

This PR fixes an inconsistency in the `assets.rst` documentation example.
The sample code used a plain string for the `alias` argument in `Metadata()`, which in reality raises:

> TypeError: Key should be either an asset or an asset alias, not <class 'str'>

This change updates the example to use a typed `AssetAlias("my-task-outputs")`, matching the SDK API and avoiding that error.
(cherry picked from commit ed67114)

Co-authored-by: QBidolet <52286815+QBidolet@users.noreply.github.com>
@shahar1 shahar1 merged commit 48790d6 into v3-0-test May 24, 2025
47 checks passed
@shahar1 shahar1 deleted the backport-ed67114-v3-0-test branch May 24, 2025 17:07
kaxil pushed a commit that referenced this pull request Jun 3, 2025
…a` example (#50768) (#51000)

This PR fixes an inconsistency in the `assets.rst` documentation example.
The sample code used a plain string for the `alias` argument in `Metadata()`, which in reality raises:

> TypeError: Key should be either an asset or an asset alias, not <class 'str'>

This change updates the example to use a typed `AssetAlias("my-task-outputs")`, matching the SDK API and avoiding that error.
(cherry picked from commit ed67114)

Co-authored-by: QBidolet <52286815+QBidolet@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants