Skip to content

Commit

Permalink
Make sure str is used as key in parameter dict
Browse files Browse the repository at this point in the history
  • Loading branch information
erlend-aasland committed Jul 3, 2023
1 parent 3f1a0c0 commit d694f04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tools/clinic/clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d694f04

Please sign in to comment.