From: Nikita Sobolev Date: Fri, 23 Feb 2024 09:00:07 +0000 (+0300) Subject: Remove `ConverterKeywordDict` alias in `clinic.py` (#115843) X-Git-Tag: v3.13.0a5~274 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3f462c9a73d2a6e79aacce7f25aaac361c2d743;p=thirdparty%2FPython%2Fcpython.git Remove `ConverterKeywordDict` alias in `clinic.py` (#115843) --- diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py index 5d2617b3bd57..7906e7c95d17 100755 --- a/Tools/clinic/clinic.py +++ b/Tools/clinic/clinic.py @@ -4069,8 +4069,6 @@ class str_converter(CConverter): # mapping from arguments to format unit *and* registers the # legacy C converter for that format unit. # -ConverterKeywordDict = dict[str, TypeSet | bool] - def r(format_unit: str, *, accept: TypeSet, @@ -4086,7 +4084,7 @@ def r(format_unit: str, # # also don't add the converter for 's' because # the metaclass for CConverter adds it for us. - kwargs: ConverterKeywordDict = {} + kwargs: dict[str, Any] = {} if accept != {str}: kwargs['accept'] = accept if zeroes: