Skip to content

Commit

Permalink
fix transpiler visit method
Browse files Browse the repository at this point in the history
  • Loading branch information
apkrelling committed Nov 19, 2024
1 parent 0224f69 commit 5cb535d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/astx/transpilers/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ def visit(self, node: astx.FunctionReturn) -> str:
value = self.visit(node.value) if node.value else ""
return f"return {value}"

@dispatch # type: ignore[no-redef]
def visit(self, node: astx.IfExpr) -> str:
"""Handle IfExpr nodes."""
if node.else_:
Expand Down

0 comments on commit 5cb535d

Please sign in to comment.