mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-05 00:58:47 +08:00
Make sure the new generic syntax does not fail with latest parso
This commit is contained in:
1 parent
4c9dbcca03
commit
8e4df5cc0e
1 file changed
+13
@@ -436,3 +436,16 @@ res = 'f' in 'foo'; res
|
|||||||
|
|
||||||
#? bool()
|
#? bool()
|
||||||
res = not {}; res
|
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()
|
||||||
Reference in new issue
Block a user