From 7e8d3f03c3c9808a59d8b7d90aa74c9db49b3124 Mon Sep 17 00:00:00 2001 From: Milan <30416311+krneta@users.noreply.github.com> Date: Thu, 17 Aug 2023 16:06:48 -0700 Subject: [PATCH] Update src/braket/parametric/free_parameter.py Co-authored-by: Abe Coull <85974725+math411@users.noreply.github.com> --- src/braket/parametric/free_parameter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/braket/parametric/free_parameter.py b/src/braket/parametric/free_parameter.py index cd2e94793..27e588d79 100644 --- a/src/braket/parametric/free_parameter.py +++ b/src/braket/parametric/free_parameter.py @@ -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 '__'")