The page you navigated to () does not exist, so we brought you to the closest page to it.
You have switched from the to the variant of this site. There is no equivalent of . We have taken you to the closest page in the variant.
1.16.16
flytekit.core.annotation
Directory
Classes
| Class | Description |
|---|---|
FlyteAnnotation |
A core object to add arbitrary annotations to flyte types. |
flytekit.core.annotation.FlyteAnnotation
A core object to add arbitrary annotations to flyte types.
This metadata is ingested as a python dictionary and will be serialized into fields on the flyteidl type literals. This data is not accessible at runtime but rather can be retrieved from flyteadmin for custom presentation of typed parameters.
Flytekit expects to receive a maximum of one FlyteAnnotation object
within each typehint.
For a task definition:
@task
def x(a: typing.Annotated[int, FlyteAnnotation({"foo": {"bar": 1}})]):
returnParameters
class FlyteAnnotation(
data: typing.Dict[str, typing.Any],
)| Parameter | Type | Description |
|---|---|---|
data |
typing.Dict[str, typing.Any] |
Properties
| Property | Type | Description |
|---|---|---|
data |
None |