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 {
225225 . map ( |v| {
226226 if !v. fast_isinstance ( vm. ctx . types . int_type ) {
227227 return Err ( vm. new_type_error ( format ! (
228- "'{}' type cannot be interpreted as an integer" ,
228+ "'{}' object cannot be interpreted as an integer" ,
229229 v. class( ) . name( )
230230 ) ) ) ;
231231 }
@@ -253,9 +253,10 @@ mod _operator {
253253 if !a. class ( ) . has_attr ( identifier ! ( vm, __getitem__) )
254254 || a. fast_isinstance ( vm. ctx . types . dict_type )
255255 {
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+ ) ) ) ;
259260 }
260261 vm. _iadd ( & a, & b)
261262 }
You can’t perform that action at this time.
0 commit comments