summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorJelle Zijlstra <jelle.zijlstra@gmail.com>2023-05-17 13:05:42 (GMT)
committerGitHub <noreply@github.com>2023-05-17 13:05:42 (GMT)
commit97db2f3e07bf7d56750e215e4f32653bf3867ef8 (patch)
tree937151e98c3f0e16603209e9e968098b429b8564 /Python
parent0cb2fdc6217aa7c04b5c798cfd195c8d0f4af353 (diff)
downloadcpython-97db2f3e07bf7d56750e215e4f32653bf3867ef8.zip
cpython-97db2f3e07bf7d56750e215e4f32653bf3867ef8.tar.gz
cpython-97db2f3e07bf7d56750e215e4f32653bf3867ef8.tar.bz2
gh-104572: Improve error messages for invalid constructs in PEP 695 contexts (#104573)
Diffstat (limited to 'Python')
-rw-r--r--Python/symtable.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/symtable.c b/Python/symtable.c
index 3451f6c..f896f7c 100644
--- a/Python/symtable.c
+++ b/Python/symtable.c
@@ -45,16 +45,16 @@
"assignment expression cannot be used in a comprehension iterable expression"
#define ANNOTATION_NOT_ALLOWED \
-"'%s' can not be used within an annotation"
+"%s cannot be used within an annotation"
#define TYPEVAR_BOUND_NOT_ALLOWED \
-"'%s' can not be used within a TypeVar bound"
+"%s cannot be used within a TypeVar bound"
#define TYPEALIAS_NOT_ALLOWED \
-"'%s' can not be used within a type alias"
+"%s cannot be used within a type alias"
#define TYPEPARAM_NOT_ALLOWED \
-"'%s' can not be used within the definition of a generic"
+"%s cannot be used within the definition of a generic"
#define DUPLICATE_TYPE_PARAM \
"duplicate type parameter '%U'"