0.1.dev2192+g7c539c3.d20250403
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}})]):
returnclass FlyteAnnotation(
data: typing.Dict[str, typing.Any],
)| Parameter | Type |
|---|---|
data |
typing.Dict[str, typing.Any] |
Properties
| Property | Type | Description |
|---|---|---|
data |