from ast import NodeVisitor


class YieldSearch(NodeVisitor):

    def visit_Yield(self, node):
        self.has_yield = True

@@ -119,8 +119,167 @@
  = True%0A
+%0A    def visit_FunctionDef(self, node):%0A        pass  # do not visit nest function definition to determine%0A              # if a function has a yield or not...%0A

fix nested generator definition