0.1.dev2192+g7c539c3.d20250403
flytekit.core.type_match_checking
Directory
Methods
Method | Description |
---|---|
literal_types_match() |
Returns if two LiteralTypes are the same. |
Methods
literal_types_match()
def literal_types_match(
downstream: LiteralType,
upstream: LiteralType,
) -> bool
Returns if two LiteralTypes are the same. Takes into account arbitrary ordering of enums and unions, otherwise just an equivalence check.
Parameter | Type |
---|---|
downstream |
LiteralType |
upstream |
LiteralType |