ty emits invalid-type-form for non-type expressions like the following that do not produce errors at runtime:
While the above case may seem nonsensical, there are real-world code examples where a strict treatment of non-type tuple[ ] expressions under the restricted grammar of type-expressions would lead to false positives (astral-sh/ruff#18991 (comment)). For example:
runtime_type_representation = tuple[(int, str) * 3]