TypeVarTuple
E911252
TypeVarTuple is a Python typing construct introduced in PEP 646 that represents a variadic type variable, allowing type annotations to express an arbitrary number of type parameters.
All labels observed (1)
| Label | Occurrences |
|---|---|
| TypeVarTuple canonical | 1 |
How this entity was disambiguated
This entity first appeared as the object of triple T11215838 — resolving that mention is where its identity was fixed. The disambiguator weighed these candidate entities and picked the highlighted one (or “None”, minting a new entity). This is how homonymy is resolved: the same surface form can point to different entities.
Target entity: TypeVarTuple Context triple: [Type Parameter Syntax, relatedTo, TypeVarTuple]
-
A.
System.ValueTuple
System.ValueTuple is a .NET value type that provides lightweight, mutable tuples for grouping multiple values without defining a custom type.
-
B.
typer
Typer is a modern, user-friendly Python library for building command-line interfaces, created by Sebastián Ramírez (tiangolo), the author of FastAPI.
-
C.
Type Parameter Syntax
Type Parameter Syntax is the Python language feature introduced by PEP 695 that provides a concise, built-in way to declare and use type parameters for generics directly in function, class, and type alias definitions.
-
D.
PEP 647 TypeGuard
PEP 647 TypeGuard is a Python typing feature that allows developers to define user-defined type guard functions, enabling more precise type narrowing and improved static type checking.
-
E.
PEP 484
PEP 484 is the Python Enhancement Proposal that introduced a standard for type hints in Python, forming the basis of the language’s static typing ecosystem.
- F. None of above. chosen
- G. Unsure - the case is ambiguous/there is not enough information to decide.
Target entity: TypeVarTuple Target entity description: TypeVarTuple is a Python typing construct introduced in PEP 646 that represents a variadic type variable, allowing type annotations to express an arbitrary number of type parameters.
-
A.
System.ValueTuple
System.ValueTuple is a .NET value type that provides lightweight, mutable tuples for grouping multiple values without defining a custom type.
-
B.
typer
Typer is a modern, user-friendly Python library for building command-line interfaces, created by Sebastián Ramírez (tiangolo), the author of FastAPI.
-
C.
Type Parameter Syntax
Type Parameter Syntax is the Python language feature introduced by PEP 695 that provides a concise, built-in way to declare and use type parameters for generics directly in function, class, and type alias definitions.
-
D.
PEP 647 TypeGuard
PEP 647 TypeGuard is a Python typing feature that allows developers to define user-defined type guard functions, enabling more precise type narrowing and improved static type checking.
-
E.
PEP 484
PEP 484 is the Python Enhancement Proposal that introduced a standard for type hints in Python, forming the basis of the language’s static typing ecosystem.
- F. None of above. chosen
Statements (44)
| Predicate | Object |
|---|---|
| instanceOf |
Python typing feature
ⓘ
typing construct ⓘ variadic type variable ⓘ |
| availableFromModule |
typing
ⓘ
typing_extensions ⓘ |
| canBeUnpackedWith | Unpack ⓘ |
| category | static typing ⓘ |
| commonlyUsedWith |
Generic
ⓘ
typing.Unpack ⓘ |
| definedIn | Python standard library typing module ⓘ |
| designGoal |
allow expressing arbitrary-length homogeneous or heterogeneous type sequences
ⓘ
support variadic generics in Python type system ⓘ |
| enables |
forwarding of arbitrary type argument lists
ⓘ
shape-polymorphic typing for tuples ⓘ tuple-type parameter packs ⓘ |
| exampleUsage |
class Array(Generic[*Ts]): ...
ⓘ
def f(*args: *Ts) -> Tuple[*Ts]: ... ⓘ |
| introducedInPEP | PEP 646 NERFINISHED ⓘ |
| introducedInPythonVersion | Python 3.11 NERFINISHED ⓘ |
| isCheckedBy |
static type checkers such as mypy
ⓘ
static type checkers such as pyright ⓘ |
| kind | variadic type parameter ⓘ |
| language | Python NERFINISHED ⓘ |
| originPEPStatus | accepted GENERATED ⓘ |
| parameterizes |
generic classes
ⓘ
generic functions ⓘ |
| pepTitle | PEP 646: Variadic Generics NERFINISHED ⓘ |
| relatedTo |
ParamSpec
ⓘ
TypeVar ⓘ Unpack ⓘ |
| restriction | must be unpacked with Unpack when used in most type positions ⓘ |
| semantics | represents an ordered sequence of type arguments ⓘ |
| status | standardized in Python typing ⓘ |
| supports |
typing of APIs that preserve argument list shapes
ⓘ
typing of n-dimensional array shapes ⓘ typing of variadic tuple-like structures ⓘ |
| supportsFeature | variadic generics ⓘ |
| syntaxExample | Ts = TypeVarTuple('Ts') ⓘ |
| usedFor |
defining generic classes with variable-length type arguments
ⓘ
defining generic functions with variable-length type arguments ⓘ representing an arbitrary number of type parameters ⓘ typing of variadic parameter packs ⓘ |
| worksWith |
Callable types via ParamSpec and TypeVarTuple combinations
ⓘ
tuple types ⓘ |
How these facts were elicited
The pipeline generated the facts above by prompting gpt-5.1 with this entity's name + description and the instruction below.
You are a knowledge base construction expert. Given a subject entity and a description of it, return factual statements that you know for the subject as a JSON list of dictionaries(triples), where keys must be "subject", "predicate" and "object". The number of facts may be very high, between 25 to 50 or more, for very popular subjects. For less popular subjects, the number of facts can be very low, like 5 or 10. # Requirements - If you don't know the subject at all, return an empty list. - If the subject is not a named entity, return an empty list. - Include at least one triple where predicate is "instanceOf". - Do not get too wordy. - Separate several objects into multiple triples with one object.
Subject: TypeVarTuple Description of subject: TypeVarTuple is a Python typing construct introduced in PEP 646 that represents a variadic type variable, allowing type annotations to express an arbitrary number of type parameters.
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.