Skip to content

Commit eaff0da

Browse files
committed
Update API scheme to layer 167. + Fix api compiling + Add some new errors to known errors
1 parent 2386eee commit eaff0da

3 files changed

Lines changed: 54 additions & 21 deletions

File tree

compiler/api/compiler.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,11 +258,14 @@ def start(format: bool = False):
258258

259259
args = ARGS_RE.findall(line)
260260

261-
# Fix arg name being "self" (reserved python keyword)
261+
# Fix arg name being reserved python keyword
262262
for i, item in enumerate(args):
263263
if item[0] == "self":
264264
args[i] = ("is_self", item[1])
265265

266+
if item[0] == "from":
267+
args[i] = ("from_peer", item[1])
268+
266269
combinator = Combinator(
267270
section=section,
268271
qualname=qualname,

0 commit comments

Comments
 (0)