def visit_keyword(self, node: ast.keyword) -> ast.keyword: """ Keyword references in call signatures. """ node.arg = self.add_placeholder(node.arg) self.generic_visit(node) return node
def visit_keyword(self, node: ast.keyword): if node.arg in self.repldict: val = self.repldict[node.arg] if isinstance(val, ast.AST): val = unparse(val) node.arg = val return self.generic_visit(node)
def visit_keyword(self, node: ast.keyword): if node.arg in self.globals and isinstance(self.globals[node.arg], symbolic.symbol): node.arg = self.globals[node.arg].name return self.generic_visit(node)
def visit_keyword(self, node: ast.keyword): if node.arg in self.repldict: node.arg = self.repldict[node.arg] return self.generic_visit(node)