From 97db2f3e07bf7d56750e215e4f32653bf3867ef8 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Wed, 17 May 2023 06:05:42 -0700 Subject: gh-104572: Improve error messages for invalid constructs in PEP 695 contexts (#104573) --- Python/symtable.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Python') diff --git a/Python/symtable.c b/Python/symtable.c index 3451f6c7bf..f896f7cbe3 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'" -- cgit v1.2.1