Multiple ChoiceHard 30s
Generics with TypeVar
Choose the best answer for: TypeVar
Options
- 1TypeVar is exactly the same as Union for annotating types
- 2TypeVar is used to annotate types in async def functions
- 3TypeVar is for annotating the runtime type of a variable
- 4TypeVar creates a type variable for generic functions/classes
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.