mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
gh-104050: Argument clinic: Annotate str_converter_key() (#107294)
This commit is contained in:
parent
f9bcdf2368
commit
5aa6964a5c
1 changed files with 6 additions and 2 deletions
|
|
@ -3624,10 +3624,14 @@ class buffer: pass
|
|||
class rwbuffer: pass
|
||||
class robuffer: pass
|
||||
|
||||
def str_converter_key(types, encoding, zeroes):
|
||||
StrConverterKeyType = tuple[frozenset[type], bool, bool]
|
||||
|
||||
def str_converter_key(
|
||||
types: TypeSet, encoding: bool | str | None, zeroes: bool
|
||||
) -> StrConverterKeyType:
|
||||
return (frozenset(types), bool(encoding), bool(zeroes))
|
||||
|
||||
str_converter_argument_map: dict[str, str] = {}
|
||||
str_converter_argument_map: dict[StrConverterKeyType, str] = {}
|
||||
|
||||
class str_converter(CConverter):
|
||||
type = 'const char *'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue