0.1.dev2184+g1e0cbe7.d20250401

flytekit.models.annotation

Directory

Classes

Class Description
TypeAnnotation Python class representation of the flyteidl TypeAnnotation message.

flytekit.models.annotation.TypeAnnotation

Python class representation of the flyteidl TypeAnnotation message.

class TypeAnnotation(
    annotations: typing.Dict[str, typing.Any],
)
Parameter Type
annotations typing.Dict[str, typing.Any]

Methods

Method Description
from_flyte_idl() .
merge_annotations() Merges two annotations together.
to_flyte_idl() :rtype: flyteidl.

from_flyte_idl()

def from_flyte_idl(
    proto,
) -> e: TypeAnnotation
Parameter Type
proto

merge_annotations()

def merge_annotations(
    annotation: TypeAnnotation,
    other_annotation: TypeAnnotation,
) -> e: TypeAnnotation

Merges two annotations together. If the same key exists in both annotations, the value in the other annotation will be used.

Parameter Type
annotation TypeAnnotation
other_annotation TypeAnnotation

to_flyte_idl()

def to_flyte_idl()

:rtype: flyteidl.core.types_pb2.TypeAnnotation

Properties

Property Type Description
annotations
:rtype: dict[str, Any]