Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Jun 15, 2022
1 parent b8a38f0 commit 2b9461a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx/pycode/ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def visit_Attribute(self, node: ast.Attribute) -> str:
return "%s.%s" % (self.visit(node.value), node.attr)

def visit_BinOp(self, node: ast.BinOp) -> str:
# Special case ``**`` to now have surrounding spaces.
# Special case ``**`` to not have surrounding spaces.
if isinstance(node.op, ast.Pow):
return "".join(map(self.visit, (node.left, node.op, node.right)))
return " ".join(self.visit(e) for e in [node.left, node.op, node.right])
Expand Down

0 comments on commit 2b9461a

Please sign in to comment.