mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-23 23:34:28 +00:00
Fix api compiling
This commit is contained in:
parent
3b98e7a5f7
commit
2a3725e605
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user