$ mypy --enable-incomplete-feature=NewGenericSyntax test.pyi
test.pyi: note: In member "f" of class "B":
test.pyi:3:24: error: A function returning TypeVar should receive at least one argument containing the same TypeVar [type-var]
def f(self) -> T: ...
^
Found 1 error in 1 file (checked 1 source file)
The following code:
produces the following output:
This looks like a false positive to me.