Skip to content

Commit

Permalink
docs: update main decorator type annotation (#835)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajberdy authored Dec 12, 2023
1 parent f4bef51 commit 91ab4f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/braket/experimental/autoqasm/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def main(
*,
num_qubits: Optional[int] = None,
device: Optional[Union[Device, str]] = None,
) -> aq_program.Program | functools.partial:
) -> aq_program.Program | Callable[..., aq_program.Program]:
"""Decorator that converts a function into a Program object containing the quantum program.
The decorator re-converts the target function whenever the decorated
Expand All @@ -65,8 +65,8 @@ def main(
program. Can be either an Device object or a valid Amazon Braket device ARN.
Returns:
Program | partial: The Program object containing the converted quantum program, or a
partial function of the `main` decorator.
Program | Callable[..., Program]: The Program object containing the converted quantum
program, or a partial function of the `main` decorator.
"""
if isinstance(device, str):
device = AwsDevice(device)
Expand Down

0 comments on commit 91ab4f5

Please sign in to comment.