Make sure the new generic syntax does not fail with latest parso

This commit is contained in:
Dave Halter
2026-05-02 01:08:27 +02:00
parent 4c9dbcca03
commit 8e4df5cc0e
+13
View File
@@ -436,3 +436,16 @@ res = 'f' in 'foo'; res
#? bool()
res = not {}; res
# -----------------
# new generic syntax should not fail
# -----------------
class C[T]:
def c(self) -> str: ...
def f[T](x: T, y: T) -> int: ...
#? int()
f()
#? str()
C().c()