mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-31 00:24:41 +08:00
Fix yield scanning.
This commit is contained in:
@@ -521,6 +521,9 @@ class Function(ClassOrFunc):
|
||||
"""
|
||||
def scan(children):
|
||||
for element in children:
|
||||
if element.type in ('classdef', 'funcdef', 'lambdef'):
|
||||
continue
|
||||
|
||||
try:
|
||||
nested_children = element.children
|
||||
except AttributeError:
|
||||
|
||||
Reference in New Issue
Block a user