Skip to content

Commit

Permalink
Update adding-partitions-to-assets.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tacastillo authored May 10, 2024
1 parent dd0024e commit 73e96b1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ To add the partition to the asset:
)
```

3. In Dagster, the `context` argument provides you with metadata about the current materialization. To access it, include it as the first argument in the asset definition function. You can enable typehinting for this by importing `AssetExecutionContext` from `dagster` and adding it to the function signature. For example, the updated asset definition should look like this:
3. In Dagster, the `context` argument provides you with metadata about the current materialization. To access it, include it as the first argument in the asset definition function. You can enable type hinting for this by importing `AssetExecutionContext` from `dagster` and adding it to the function signature. For example, the updated asset definition should look like this:

```python
from dagster import asset, AssetExecutionContext
Expand Down

0 comments on commit 73e96b1

Please sign in to comment.