Fix errorstring in _handle_unary_op

This commit is contained in:
Pragyansh Chaturvedi
2025-10-12 09:13:04 +05:30
parent 4e33fd4a32
commit a3b4d09652

View File

@ -177,7 +177,7 @@ def _handle_unary_op(
):
"""Handle ast.UnaryOp expressions."""
if not isinstance(expr.op, ast.Not) and not isinstance(expr.op, ast.USub):
logger.error("Only 'not' unary operator is supported")
logger.error("Only 'not' and '-' unary operators are supported")
return None
operand = eval_expr(