Skip to content

Commit 800640a

Browse files
authored
chore: replace "an valid" with "a valid" in the exception messages (#1414)
1 parent fd8bc89 commit 800640a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

bigframes/operations/json_ops.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def output_type(self, *input_types):
3131
input_type = input_types[0]
3232
if not dtypes.is_json_like(input_type):
3333
raise TypeError(
34-
"Input type must be an valid JSON object or JSON-formatted string type."
34+
"Input type must be a valid JSON object or JSON-formatted string type."
3535
+ f" Received type: {input_type}"
3636
)
3737
return input_type
@@ -46,7 +46,7 @@ def output_type(self, *input_types):
4646
input_type = input_types[0]
4747
if not dtypes.is_json_like(input_type):
4848
raise TypeError(
49-
"Input type must be an valid JSON object or JSON-formatted string type."
49+
"Input type must be a valid JSON object or JSON-formatted string type."
5050
+ f" Received type: {input_type}"
5151
)
5252
return pd.ArrowDtype(
@@ -63,7 +63,7 @@ def output_type(self, *input_types):
6363
input_type = input_types[0]
6464
if not dtypes.is_json_like(input_type):
6565
raise TypeError(
66-
"Input type must be an valid JSON object or JSON-formatted string type."
66+
"Input type must be a valid JSON object or JSON-formatted string type."
6767
+ f" Received type: {input_type}"
6868
)
6969
return pd.ArrowDtype(
@@ -79,7 +79,7 @@ def output_type(self, *input_types):
7979
input_type = input_types[0]
8080
if input_type != dtypes.STRING_DTYPE:
8181
raise TypeError(
82-
"Input type must be an valid JSON-formatted string type."
82+
"Input type must be a valid JSON-formatted string type."
8383
+ f" Received type: {input_type}"
8484
)
8585
return dtypes.JSON_DTYPE
@@ -93,7 +93,7 @@ def output_type(self, *input_types):
9393
input_type = input_types[0]
9494
if not dtypes.is_json_like(input_type):
9595
raise TypeError(
96-
"Input type must be an valid JSON object or JSON-formatted string type."
96+
"Input type must be a valid JSON object or JSON-formatted string type."
9797
+ f" Received type: {input_type}"
9898
)
9999
return dtypes.STRING_DTYPE
@@ -109,7 +109,7 @@ def output_type(self, *input_types):
109109
right_type = input_types[1]
110110
if not dtypes.is_json_like(left_type):
111111
raise TypeError(
112-
"Input type must be an valid JSON object or JSON-formatted string type."
112+
"Input type must be a valid JSON object or JSON-formatted string type."
113113
+ f" Received type: {left_type}"
114114
)
115115
if not dtypes.is_json_encoding_type(right_type):
@@ -130,7 +130,7 @@ def output_type(self, *input_types):
130130
input_type = input_types[0]
131131
if not dtypes.is_json_like(input_type):
132132
raise TypeError(
133-
"Input type must be an valid JSON object or JSON-formatted string type."
133+
"Input type must be a valid JSON object or JSON-formatted string type."
134134
+ f" Received type: {input_type}"
135135
)
136136
return dtypes.STRING_DTYPE

0 commit comments

Comments
 (0)