```python from typing import Generic, Self, TypeVar T = TypeVar('T') class X(Generic[T]): def f(self, t: T) -> None: pass class Y: def g(self) -> None: X[Self]().f(self) # error: Argument 1 to "f" of "X" has incompatible type "Y"; expected "Self" [arg-type] ```