Example
from typing import Literal
name_list = ["Tom", "Jerry"]
name1: Literal["Tom", "Jerry"] = "Tom" # ✅ But💧<name_list> not reuse
Is there a way to reuse variables in types for Literal ???
eg:
name2: Literal[ *name_list ] = "Tom" # ❌ "I initially thought of this method, but it is incorrect."