mypy generics - plain
- We can use generics to say that we accept any type and we can use it to indicate that some other parameter or the return type will be the same type.
examples/python-types-at-pyweb-2025-01/generics_plain.py
def do_something[T](x: T) -> T: return x y = do_something(23) print(y + 19) #print(y + "19")