Skip to content

Commit 5d8959f

Browse files
committed
Remove ConverterKeywordDict alias in clinic.py
1 parent a33ffe4 commit 5d8959f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Tools/clinic/clinic.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4058,6 +4058,7 @@ def parse_arg(self, argname: str, displayname: str, *, limited_capi: bool) -> st
40584058
length_name=self.length_name)
40594059
return super().parse_arg(argname, displayname, limited_capi=limited_capi)
40604060

4061+
40614062
#
40624063
# This is the fourth or fifth rewrite of registering all the
40634064
# string converter format units. Previous approaches hid
@@ -4069,8 +4070,6 @@ def parse_arg(self, argname: str, displayname: str, *, limited_capi: bool) -> st
40694070
# mapping from arguments to format unit *and* registers the
40704071
# legacy C converter for that format unit.
40714072
#
4072-
ConverterKeywordDict = dict[str, TypeSet | bool]
4073-
40744073
def r(format_unit: str,
40754074
*,
40764075
accept: TypeSet,
@@ -4086,7 +4085,7 @@ def r(format_unit: str,
40864085
#
40874086
# also don't add the converter for 's' because
40884087
# the metaclass for CConverter adds it for us.
4089-
kwargs: ConverterKeywordDict = {}
4088+
kwargs: dict[str, Any] = {}
40904089
if accept != {str}:
40914090
kwargs['accept'] = accept
40924091
if zeroes:

0 commit comments

Comments
 (0)