File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ mod _operator {
225
225
. map ( |v| {
226
226
if !v. fast_isinstance ( vm. ctx . types . int_type ) {
227
227
return Err ( vm. new_type_error ( format ! (
228
- "'{}' type cannot be interpreted as an integer" ,
228
+ "'{}' object cannot be interpreted as an integer" ,
229
229
v. class( ) . name( )
230
230
) ) ) ;
231
231
}
@@ -253,9 +253,10 @@ mod _operator {
253
253
if !a. class ( ) . has_attr ( identifier ! ( vm, __getitem__) )
254
254
|| a. fast_isinstance ( vm. ctx . types . dict_type )
255
255
{
256
- return Err (
257
- vm. new_type_error ( format ! ( "{} object can't be concatenated" , a. class( ) . name( ) ) )
258
- ) ;
256
+ return Err ( vm. new_type_error ( format ! (
257
+ "'{}' object can't be concatenated" ,
258
+ a. class( ) . name( )
259
+ ) ) ) ;
259
260
}
260
261
vm. _iadd ( & a, & b)
261
262
}
You can’t perform that action at this time.
0 commit comments