mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
gh-111178: Generate correct signature for most self converters (#128447)
This commit is contained in:
parent
4d0a6595a0
commit
537296cdcd
74 changed files with 1627 additions and 1631 deletions
|
|
@ -1182,10 +1182,8 @@ class self_converter(CConverter):
|
|||
@property
|
||||
def parser_type(self) -> str:
|
||||
assert self.type is not None
|
||||
if self.function.kind in {METHOD_INIT, METHOD_NEW, STATIC_METHOD, CLASS_METHOD}:
|
||||
tp, _ = correct_name_for_self(self.function)
|
||||
return tp
|
||||
return self.type
|
||||
tp, _ = correct_name_for_self(self.function)
|
||||
return tp
|
||||
|
||||
def render(self, parameter: Parameter, data: CRenderData) -> None:
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue