mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-25 07:37:14 +08:00
Obviously cannot return from a generator with an empty list
This commit is contained in:
@@ -380,7 +380,7 @@ class AnnotatedClass(ClassContext):
|
|||||||
def find_annotation_variables(self):
|
def find_annotation_variables(self):
|
||||||
arglist = self.tree_node.get_super_arglist()
|
arglist = self.tree_node.get_super_arglist()
|
||||||
if arglist is None:
|
if arglist is None:
|
||||||
return []
|
return
|
||||||
|
|
||||||
for stars, node in unpack_arglist(arglist):
|
for stars, node in unpack_arglist(arglist):
|
||||||
if stars:
|
if stars:
|
||||||
|
|||||||
Reference in New Issue
Block a user