You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the PEP 695 TypeVars syntax is not supported for the stubs generator.
Desired solution
The code
deffunc[T](a: T, b: T) ->T: ...
should produce the following stubs:
@Purefunfunc<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.
The text was updated successfully, but these errors were encountered:
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
should produce the following stubs:
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.
The text was updated successfully, but these errors were encountered: