Debian Codegraph @

test/completion/pep0695_type_parameter_syntax.py

raw symbols SCIP
1 # python >= 3.12
2
3 # -----------------
4 # new generic syntax should not fail
5 # -----------------
6
7 class C[T]:
8 def c(self) -> str: ...
9 def f[T](x: T, y: T) -> int: ...
10
11 #? int()
12 f()
13 #? str()
14 C().c()