Remove `ConverterKeywordDict` alias in `clinic.py` (#115843)

This commit is contained in:
Nikita Sobolev 2024-02-23 12:00:07 +03:00 committed by GitHub
parent a33ffe4785
commit e3f462c9a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

@ -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: