# flytekit.core.annotation

## Directory

### Classes

| Class | Description |
|-|-|
| [`FlyteAnnotation`](https://www.union.ai/docs/v1/union/api-reference/flytekit-sdk/packages/flytekit.core.annotation/page.md#flytekitcoreannotationflyteannotation) | 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:

```python
@task
def x(a: typing.Annotated[int, FlyteAnnotation({"foo": {"bar": 1}})]):
    return
```

### Parameters

```python
class FlyteAnnotation(
    data: typing.Dict[str, typing.Any],
)
```
| Parameter | Type | Description |
|-|-|-|
| `data` | `typing.Dict[str, typing.Any]` | |

### Properties

| Property | Type | Description |
|-|-|-|
| `data` | `None` |  |

---
**Source**: https://github.com/unionai/unionai-docs/blob/main/content/api-reference/flytekit-sdk/packages/flytekit.core.annotation.md
**HTML**: https://www.union.ai/docs/v1/union/api-reference/flytekit-sdk/packages/flytekit.core.annotation/
