On the right, mypy would complain about the lines 8 and 9, which is probably what we want. So, TypeVar is a better choice if the type must be consistent across ...
確定! 回上一頁