```python from typing import TypeVar T = TypeVar('T') def f() -> T: ... ``` Mypy is absolutely OK with this code, but it makes no sense (it is not possible to return `T` without argument).