@@ -31,7 +31,7 @@ def output_type(self, *input_types):
31
31
input_type = input_types [0 ]
32
32
if not dtypes .is_json_like (input_type ):
33
33
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."
35
35
+ f" Received type: { input_type } "
36
36
)
37
37
return input_type
@@ -46,7 +46,7 @@ def output_type(self, *input_types):
46
46
input_type = input_types [0 ]
47
47
if not dtypes .is_json_like (input_type ):
48
48
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."
50
50
+ f" Received type: { input_type } "
51
51
)
52
52
return pd .ArrowDtype (
@@ -63,7 +63,7 @@ def output_type(self, *input_types):
63
63
input_type = input_types [0 ]
64
64
if not dtypes .is_json_like (input_type ):
65
65
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."
67
67
+ f" Received type: { input_type } "
68
68
)
69
69
return pd .ArrowDtype (
@@ -79,7 +79,7 @@ def output_type(self, *input_types):
79
79
input_type = input_types [0 ]
80
80
if input_type != dtypes .STRING_DTYPE :
81
81
raise TypeError (
82
- "Input type must be an valid JSON-formatted string type."
82
+ "Input type must be a valid JSON-formatted string type."
83
83
+ f" Received type: { input_type } "
84
84
)
85
85
return dtypes .JSON_DTYPE
@@ -93,7 +93,7 @@ def output_type(self, *input_types):
93
93
input_type = input_types [0 ]
94
94
if not dtypes .is_json_like (input_type ):
95
95
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."
97
97
+ f" Received type: { input_type } "
98
98
)
99
99
return dtypes .STRING_DTYPE
@@ -109,7 +109,7 @@ def output_type(self, *input_types):
109
109
right_type = input_types [1 ]
110
110
if not dtypes .is_json_like (left_type ):
111
111
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."
113
113
+ f" Received type: { left_type } "
114
114
)
115
115
if not dtypes .is_json_encoding_type (right_type ):
@@ -130,7 +130,7 @@ def output_type(self, *input_types):
130
130
input_type = input_types [0 ]
131
131
if not dtypes .is_json_like (input_type ):
132
132
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."
134
134
+ f" Received type: { input_type } "
135
135
)
136
136
return dtypes .STRING_DTYPE
0 commit comments