Skip to content

Commit d694f04

Browse files
Make sure str is used as key in parameter dict
1 parent 3f1a0c0 commit d694f04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/clinic/clinic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4653,7 +4653,7 @@ def state_modulename_name(self, line: str | None) -> None:
46534653
kwargs['type'] = cls.typedef
46544654
sc = self.function.self_converter = self_converter(name, name, self.function, **kwargs)
46554655
p_self = Parameter(name, inspect.Parameter.POSITIONAL_ONLY, function=self.function, converter=sc)
4656-
self.function.parameters[sc.name] = p_self
4656+
self.function.parameters[name] = p_self
46574657

46584658
(cls or module).functions.append(self.function)
46594659
self.next(self.state_parameters_start)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy