Avoid goto crashes on unfinished keyword calls (#2106)

This commit is contained in:
Elias
2026-09-20 07:13:11 +00:00
committed by GitHub
parent ef5d361121
commit 19236b472b
3 changed files with 16 additions and 0 deletions
+2
View File
@@ -170,6 +170,8 @@ class AbstractTreeName(AbstractNameDefinition):
trailer = par.parent
if trailer.type == 'arglist':
trailer = trailer.parent
if trailer.type == 'error_node':
return []
if trailer.type != 'classdef':
if trailer.type == 'decorator':
value_set = context.infer_node(trailer.children[1])