Skip to content

Commit

Permalink
Added no description text for arrow functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Vardan2009 committed May 29, 2024
1 parent 74edcfd commit 1b44ccf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1300,7 +1300,9 @@ def func_def(self) -> ParseResult[Node]:
return res
assert body is not None

return res.success(FuncDefNode(var_name_tok, arg_name_toks, defaults, body, True, static=static))
return res.success(
FuncDefNode(var_name_tok, arg_name_toks, defaults, body, True, static=static, desc="[No Description]")
)

self.skip_newlines()
if self.current_tok.type != TT_LBRACE:
Expand All @@ -1312,7 +1314,6 @@ def func_def(self) -> ParseResult[Node]:
self.skip_newlines()

desc: str = "[No Description]"

if self.current_tok.type == TT_STRING:
# Set description
desc = str(self.current_tok.value)
Expand Down

0 comments on commit 1b44ccf

Please sign in to comment.