From 1b44ccfa9d66b2de85799c0487084051b1a26185 Mon Sep 17 00:00:00 2001 From: Vardan Petrosyan Date: Wed, 29 May 2024 23:01:04 +0400 Subject: [PATCH] Added no description text for arrow functions --- core/parser.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/parser.py b/core/parser.py index 4978774..69810f7 100755 --- a/core/parser.py +++ b/core/parser.py @@ -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: @@ -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)