(typ: LiteralType)
| 2683 | return " | ".join(format_union_items(types)) |
| 2684 | |
| 2685 | def format_literal_value(typ: LiteralType) -> str: |
| 2686 | if typ.is_enum_literal(): |
| 2687 | underlying_type = format(typ.fallback) |
| 2688 | return f"{underlying_type}.{typ.value}" |
| 2689 | else: |
| 2690 | return typ.value_repr() |
| 2691 | |
| 2692 | if isinstance(typ, TypeAliasType) and typ.is_recursive: |
| 2693 | if typ.alias is None: |
no test coverage detected
searching dependent graphs…