def visit_comprehension(self, node: AST,
                            dfltChaining: bool = True) -> str:
        """Return `node`s representation as comprehension."""
        target = node.target
        try:
            elts = target.elts          # we have a tuple of names
        except AttributeError:
            names = self.visit(target)
        else:
            names = ', '.join(self.visit(elt) for elt in elts)
        src = f"for {names} in {self.visit(node.iter)}"
        if node.ifs:
            src += f" {' '.join('if ' + self.visit(if_) for if_ in node.ifs)}"
        return src
def visit_comprehension ( self , node : AST , dfltChaining : bool = True ) -> str : target = node . target try : elts = target . elts except AttributeError : names = self . visit ( target ) else : names = ', ' . join ( self . visit ( elt ) for elt in elts ) src = f"for {names} in {self.visit(node.iter)}" if node . ifs : src += f" {' '.join('if ' + self.visit(if_) for if_ in node.ifs)}" return src
Return `node`s representation as comprehension.