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.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.
Parameters
class TypeAnnotation(
annotations: typing.Dict[str, typing.Any],
)| Parameter | Type | Description |
|---|---|---|
annotations |
typing.Dict[str, typing.Any] |
Properties
| Property | Type | Description |
|---|---|---|
annotations |
None |
Methods
| Method | Description |
|---|---|
from_flyte_idl() |
|
merge_annotations() |
Merges two annotations together. |
to_flyte_idl() |
from_flyte_idl()
def from_flyte_idl(
proto,
)| Parameter | Type | Description |
|---|---|---|
proto |
Returns: TypeAnnotation
merge_annotations()
def merge_annotations(
annotation: TypeAnnotation,
other_annotation: TypeAnnotation,
) -> TypeAnnotationMerges two annotations together. If the same key exists in both annotations, the value in the other annotation will be used.
| Parameter | Type | Description |
|---|---|---|
annotation |
TypeAnnotation |
|
other_annotation |
TypeAnnotation |
Returns: TypeAnnotation
to_flyte_idl()
def to_flyte_idl()Returns: flyteidl.core.types_pb2.TypeAnnotation