1.16.10
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,
) -> boolReturns if two LiteralTypes are the same. Takes into account arbitrary ordering of enums and unions, otherwise just an equivalence check.
| Parameter | Type | Description |
|---|---|---|
downstream |
LiteralType |
|
upstream |
LiteralType |