Is your feature request related to a problem?
Currently the PEP 695 TypeVars syntax is not supported for the stubs generator.
Desired solution
The code
def func[T](a: T, b: T) -> T: ...
should produce the following stubs:
@Pure
fun func<T>(a: T) -> result1: T
Possible alternatives (optional)
No response
Screenshots (optional)
No response
Additional Context (optional)
See the comments here. I already added the stubs generation for these TypeVars, see commit 9c30988. Mypy currently does not support the PEP 695 syntax natively, which poses the problem that Python 3.11 does not support the snapshot tests.