]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove `ConverterKeywordDict` alias in `clinic.py` (#115843)
authorNikita Sobolev <mail@sobolevn.me>
Fri, 23 Feb 2024 09:00:07 +0000 (12:00 +0300)
committerGitHub <noreply@github.com>
Fri, 23 Feb 2024 09:00:07 +0000 (09:00 +0000)
Tools/clinic/clinic.py

index 5d2617b3bd579fce56aa551333b9cea7e67246ac..7906e7c95d17ba143f0840d1b95ef89c2829d6d5 100755 (executable)
@@ -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: