mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-12 00:30:12 +08:00
Obviously cannot return from a generator with an empty list
This commit is contained in:
1 parent
bd5af5f148
commit
b3ffc092cd
1 file changed
+1
-1
@@ -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