From 8e4df5cc0ec511db1af6d358182b1fb7c1e0cbff Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Sat, 2 May 2026 01:08:27 +0200 Subject: [PATCH] Make sure the new generic syntax does not fail with latest parso --- test/completion/basic.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/completion/basic.py b/test/completion/basic.py index b18c58ac..689d4e4d 100644 --- a/test/completion/basic.py +++ b/test/completion/basic.py @@ -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()