Fix api compiling

This commit is contained in:
KurimuzonAkuma 2023-11-30 20:46:27 +03:00
parent 3b98e7a5f7
commit 2a3725e605

View File

@ -258,11 +258,14 @@ def start(format: bool = False):
args = ARGS_RE.findall(line)
# Fix arg name being "self" (reserved python keyword)
# Fix arg name being reserved python keyword
for i, item in enumerate(args):
if item[0] == "self":
args[i] = ("is_self", item[1])
if item[0] == "from":
args[i] = ("from_peer", item[1])
combinator = Combinator(
section=section,
qualname=qualname,