We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 411d6a6 commit 220bcc9Copy full SHA for 220bcc9
Lib/test/test_syntax.py
@@ -1004,11 +1004,26 @@
1004
Traceback (most recent call last):
1005
SyntaxError: expected ':'
1006
1007
+ >>> def f[T]()
1008
+ ... pass
1009
+ Traceback (most recent call last):
1010
+ SyntaxError: expected ':'
1011
+
1012
>>> class A
1013
... pass
1014
1015
1016
1017
+ >>> class A[T]
1018
1019
1020
1021
1022
+ >>> class A[T]()
1023
1024
1025
1026
1027
>>> class R&D:
1028
1029
0 commit comments