We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
str_converter_key()
1 parent f9bcdf2 commit 5aa6964Copy full SHA for 5aa6964
Tools/clinic/clinic.py
@@ -3624,10 +3624,14 @@ class buffer: pass
3624
class rwbuffer: pass
3625
class robuffer: pass
3626
3627
-def str_converter_key(types, encoding, zeroes):
+StrConverterKeyType = tuple[frozenset[type], bool, bool]
3628
+
3629
+def str_converter_key(
3630
+ types: TypeSet, encoding: bool | str | None, zeroes: bool
3631
+) -> StrConverterKeyType:
3632
return (frozenset(types), bool(encoding), bool(zeroes))
3633
-str_converter_argument_map: dict[str, str] = {}
3634
+str_converter_argument_map: dict[StrConverterKeyType, str] = {}
3635
3636
class str_converter(CConverter):
3637
type = 'const char *'
0 commit comments