mirror of https://github.com/python/cpython
Remove `ConverterKeywordDict` alias in `clinic.py` (#115843)
This commit is contained in:
parent
a33ffe4785
commit
e3f462c9a7
|
@ -4069,8 +4069,6 @@ class str_converter(CConverter):
|
||||||
# mapping from arguments to format unit *and* registers the
|
# mapping from arguments to format unit *and* registers the
|
||||||
# legacy C converter for that format unit.
|
# legacy C converter for that format unit.
|
||||||
#
|
#
|
||||||
ConverterKeywordDict = dict[str, TypeSet | bool]
|
|
||||||
|
|
||||||
def r(format_unit: str,
|
def r(format_unit: str,
|
||||||
*,
|
*,
|
||||||
accept: TypeSet,
|
accept: TypeSet,
|
||||||
|
@ -4086,7 +4084,7 @@ def r(format_unit: str,
|
||||||
#
|
#
|
||||||
# also don't add the converter for 's' because
|
# also don't add the converter for 's' because
|
||||||
# the metaclass for CConverter adds it for us.
|
# the metaclass for CConverter adds it for us.
|
||||||
kwargs: ConverterKeywordDict = {}
|
kwargs: dict[str, Any] = {}
|
||||||
if accept != {str}:
|
if accept != {str}:
|
||||||
kwargs['accept'] = accept
|
kwargs['accept'] = accept
|
||||||
if zeroes:
|
if zeroes:
|
||||||
|
|
Loading…
Reference in New Issue