From d694f043ae25308dda607fad4ea1d8d85d79982f Mon Sep 17 00:00:00 2001 From: "Erlend E. Aasland" Date: Mon, 3 Jul 2023 11:21:36 +0200 Subject: [PATCH] Make sure str is used as key in parameter dict --- Tools/clinic/clinic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tools/clinic/clinic.py b/Tools/clinic/clinic.py index a4e15e0414a1c8..52b9b9f7124ee8 100755 --- a/Tools/clinic/clinic.py +++ b/Tools/clinic/clinic.py @@ -4653,7 +4653,7 @@ def state_modulename_name(self, line: str | None) -> None: kwargs['type'] = cls.typedef sc = self.function.self_converter = self_converter(name, name, self.function, **kwargs) p_self = Parameter(name, inspect.Parameter.POSITIONAL_ONLY, function=self.function, converter=sc) - self.function.parameters[sc.name] = p_self + self.function.parameters[name] = p_self (cls or module).functions.append(self.function) self.next(self.state_parameters_start)