Skip to content

Commit

Permalink
Update src/braket/parametric/free_parameter.py
Browse files Browse the repository at this point in the history
Co-authored-by: Abe Coull <[email protected]>
  • Loading branch information
krneta and AbeCoull authored Aug 17, 2023
1 parent 0303cbe commit 7e8d3f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/braket/parametric/free_parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def _validate_name(name: str) -> None:
if not name:
raise ValueError("FreeParameter names must be non empty")
if not isinstance(name, str):
raise TypeError("FreeParameter name must be a string")
raise TypeError("FreeParameter names must be strings")
if name.startswith("__"):
raise ValueError("FreeParameter names must not start with two underscores '__'")

Expand Down

0 comments on commit 7e8d3f0

Please sign in to comment.