All challenges
Multiple ChoiceHard 30s

Generics with TypeVar

Choose the best answer for: TypeVar
Options
  1. 1TypeVar is exactly the same as Union for annotating types
  2. 2TypeVar is used to annotate types in async def functions
  3. 3TypeVar is for annotating the runtime type of a variable
  4. 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.

Play this in a 3-minute battle