8000 chore: replace "an valid" with "a valid" in the exception messages by shobsi · Pull Request #1414 · googleapis/python-bigquery-dataframes · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions bigframes/operations/json_ops.py
8000
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def output_type(self, *input_types):
input_type = input_types[0]
if not dtypes.is_json_like(input_type):
raise TypeError(
"Input type must be an valid JSON object or JSON-formatted string type."
"Input type must be a valid JSON object or JSON-formatted string type."
+ f" Received type: {input_type}"
)
return input_type
Expand All @@ -46,7 +46,7 @@ def output_type(self, *input_types):
input_type = input_types[0]
if not dtypes.is_json_like(input_type):
raise TypeError(
"Input type must be an valid JSON object or JSON-formatted string type."
"Input type must be a valid JSON object or JSON-formatted string type."
+ f" Received type: {input_type}"
)
return pd.ArrowDtype(
Expand All @@ -63,7 +63,7 @@ def output_type(self, *input_types):
input_type = input_types[0]
if not dtypes.is_json_like(input_type):
raise TypeError(
"Input type must be an valid JSON object or JSON-formatted string type."
"Input type must be a valid JSON object or JSON-formatted string type."
+ f" Received type: {input_type}"
)
return pd.ArrowDtype(
Expand All @@ -79,7 +79,7 @@ def output_type(self, *input_types):
input_type = input_types[0]
if input_type != dtypes.STRING_DTYPE:
raise TypeError(
"Input type must be an valid JSON-formatted string type."
"Input type must be a valid JSON-formatted string type."
+ f" Received type: {input_type}"
)
return dtypes.JSON_DTYPE
Expand All @@ -93,7 +93,7 @@ def output_type(self, *input_types):
input_type = input_types[0]
if not dtypes.is_json_like(input_type):
raise TypeError(
"Input type must be an valid JSON object or JSON-formatted string type."
"Input type must be a valid JSON object or JSON-formatted string type."
+ f" Received type: {input_type}"
)
return dtypes.STRING_DTYPE
Expand All @@ -109,7 +109,7 @@ def output_type(self, *input_types):
right_type = input_types[1]
if not dtypes.is_json_like(left_type):
raise TypeError(
"Input type must be an valid JSON object or JSON-formatted string type."
"Input type must be a valid JSON object or JSON-formatted string type."
+ f" Received type: {left_type}"
)
if not dtypes.is_json_encoding_type(right_type):
Expand All @@ -130,7 +130,7 @@ def output_type(self, *input_types):
input_type = input_types[0]
if not dtypes.is_json_like(input_type):
raise TypeError(
"Input type must be an valid JSON object or JSON-formatted string type."
"Input type must be a valid JSON object or JSON-formatted string type."
+ f" Received type: {input_type}"
)
return dtypes.STRING_DTYPE
0