# flytekit.core.type_match_checking

## Directory

### Methods

| Method | Description |
|-|-|
| [`literal_types_match()`](#literal_types_match) | Returns if two LiteralTypes are the same. |

## Methods

#### literal_types_match()

```python
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 | Description |
|-|-|-|
| `downstream` | `LiteralType` | |
| `upstream` | `LiteralType` | |

---
**Source**: https://github.com/unionai/unionai-docs/blob/main/content/api-reference/flytekit-sdk/packages/flytekit.core.type_match_checking.md
**HTML**: https://www.union.ai/docs/v1/union/api-reference/flytekit-sdk/packages/flytekit.core.type_match_checking/
