Python language
PEP 695 generics
Python 3.12 syntax for type parameters: class Box[T], def f[T](x: T) -> T, and the type alias statement.
Why interviewers ask about it
Mentioning it signals you have used a recent Python. The older TypeVar form still works everywhere and is what you will meet in existing codebases.
Related terms
This term is part of the free Python Full-Stack interview preparation module - browse the full glossary for every definition.