Open larryhastings opened 3 years ago
The following operators should be explicitly disallowed in annotation functions when co_annotation is active.
co_annotation
:=
yield
yield from
await
Their use in an annotation should result in a compile-time error.
There should be tests for each of these in the standard library.
The following operators should be explicitly disallowed in annotation functions when
co_annotation
is active.:=
(walrus),yield
andyield from
, andawait
.Their use in an annotation should result in a compile-time error.
There should be tests for each of these in the standard library.