flytekit.type_engines package

Submodules

flytekit.type_engines.common module

class flytekit.type_engines.common.TypeEngine[source]

Bases: object

abstract get_sdk_type_from_literal_type(literal_type)[source]

Takes the Flyte spec language and converts to an SDK object. :param flytekit.models.types.LiteralType literal_type: :rtype: flytekit.common.types.base_sdk_types.FlyteSdkType

abstract infer_sdk_type_from_literal(literal)[source]

From a literal value, we infer the correct SDK type. :param flytekit.models.literals.Literal literal: :rtype: flytekit.common.types.base_sdk_types.FlyteSdkType

abstract python_std_to_sdk_type(t)[source]

Converts a standard format for specifying types in Python to the Flyte typing structure. :param T t: User input. Usually of the form: Types.Integer, [Types.Integer], {Types.String: Types.Integer}, etc. :rtype: flytekit.common.types.base_sdk_types.FlyteSdkType

Module contents