8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbf36cc commit e75fce1Copy full SHA for e75fce1
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