Skip to content

Commit

Permalink
linters
Browse files Browse the repository at this point in the history
  • Loading branch information
laurencap committed Aug 7, 2023
1 parent 2f524c4 commit 95efe25
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

"""Converters for return statement nodes."""

import warnings
import ast
import warnings

from braket.experimental.autoqasm import program
from braket.experimental.autoqasm.autograph.converters import return_statements
Expand All @@ -26,9 +26,7 @@ class ReturnValidator(converter.Base):
def visit_Return(self, node: ast.stmt) -> ast.stmt:
aq_context = program.get_program_conversion_context()
if aq_context.is_in_main and node.value is not None:
warnings.warn(
"`output` is currently unsupported; `return` statement has no effect."
)
warnings.warn("`output` is currently unsupported; `return` statement has no effect.")
return node


Expand Down

0 comments on commit 95efe25

Please sign in to comment.