-
Notifications
You must be signed in to change notification settings - Fork 16.3k
Fix docs assets.rst : use AssetAlias for alias in Metadata example #50768
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
Conversation
|
Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide (https://github.com/apache/airflow/blob/main/contributing-docs/README.rst)
|
|
Awesome work, congrats on your first merged pull request! You are invited to check our Issue Tracker for additional contributions. |
…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>
…a` example (apache#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>
…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>
…pache#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.
…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>
…pache#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.
This PR fixes an inconsistency in the
assets.rstdocumentation example.The sample code used a plain string for the
aliasargument inMetadata(), which in reality raises:This change updates the example to use a typed
AssetAlias("my-task-outputs"), matching the SDK API and avoiding that error.^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named
{pr_number}.significant.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.