Skip to content

Commit

Permalink
DOC-666 Change "Accessing attributes" to "Accessing attributes in wor…
Browse files Browse the repository at this point in the history
…kflows" (#5886)

* DOC-666 Change "Accessing attributes" to "Accessing attributes in workflows"

Signed-off-by: Peeter Piegaze <[email protected]>

* Update docs/user_guide/data_types_and_io/accessing_attributes.md

Co-authored-by: Nikki Everett <[email protected]>
Signed-off-by: Peeter Piegaze <[email protected]>

---------

Signed-off-by: Peeter Piegaze <[email protected]>
Co-authored-by: Nikki Everett <[email protected]>
  • Loading branch information
ppiegaze and neverett authored Nov 12, 2024
1 parent be67457 commit 6a740a8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/user_guide/data_types_and_io/accessing_attributes.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
(attribute_access)=

# Accessing attributes
# Accessing attributes in workflows

```{eval-rst}
.. tags:: Basic
```

You can directly access attributes on output promises for lists, dicts, dataclasses and combinations of these types in Flyte. This functionality facilitates the direct passing of output attributes within workflows,
enhancing the convenience of working with complex data structures.
You can directly access attributes on output promises for lists, dictionaries, dataclasses, and combinations of these types in Flyte.
Note that while this functionality may appear to be the normal behavior of Python, code in `@workflow` functions is not actually Python, but rather a Python-like DSL that is compiled by Flyte.
Consequently, accessing attributes in this manner is, in fact, a specially implemented feature.
This functionality facilitates the direct passing of output attributes within workflows, enhancing the convenience of working with complex data structures.

```{note}
To clone and run the example code on this page, see the [Flytesnacks repo][flytesnacks].
Expand Down

0 comments on commit 6a740a8

Please sign in to comment.