flytekit.LiteralType#

class flytekit.LiteralType(simple=None, schema=None, collection_type=None, map_value_type=None, blob=None, enum_type=None, union_type=None, structured_dataset_type=None, metadata=None, structure=None, annotation=None)[source]#

Methods

classmethod from_flyte_idl(proto)[source]#
Parameters:

proto (flyteidl.core.types_pb2.LiteralType)

Return type:

LiteralType

serialize_to_string()[source]#
Return type:

str

short_string()[source]#
Return type:

Text

to_flyte_idl()[source]#
Return type:

flyteidl.core.types_pb2.LiteralType

verbose_string()[source]#
Return type:

Text

Attributes

annotation

flytekit.models.annotation.TypeAnnotation

Type:

rtype

blob
collection_type

The collection value type

enum_type
is_empty
map_value_type

The Value for a dictionary. Key is always string

metadata

dict[Text, T]

Type:

rtype

schema
simple
structure
structured_dataset_type
union_type