mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-18 20:41:22 +07:00
TypeVarTuples, i.e. type parameters, such as *Ts, and unpacked tuples types, i.e. concrete types, such as *tuple[int, ...], are two independent entities in the type system. Keeping them both represented as a single type is confusing and introduces a lot of bookkeeping for accessing their state and filtering out unpacked tuples in every place where a type parameter is expected. For cases where both types are applicable, and we need to distinguish them from regular "non-unpackable" types, PyVariadicType marker interface was introduced. Also, make the API names more consistent with the PEPs terminology: "unbound" unpacked tuple types instead of "homogeneous" unpacked tuple types. GitOrigin-RevId: be77eae46fd78512eaf74d5a9709faacc762e45f