Skip to content

Commit

Permalink
Remove ConverterKeywordDict alias in clinic.py (#115843)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Feb 23, 2024
1 parent a33ffe4 commit e3f462c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Tools/clinic/clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -4069,8 +4069,6 @@ def parse_arg(self, argname: str, displayname: str, *, limited_capi: bool) -> st
# 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,
Expand All @@ -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:
Expand Down

0 comments on commit e3f462c

Please sign in to comment.